docusign_esign.models.account_password_rules

DocuSign REST API

The DocuSign 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 REST API
  5
  6    The DocuSign 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 AccountPasswordRules(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        'expire_password': 'str',
 37        'expire_password_days': 'str',
 38        'expire_password_days_metadata': 'AccountPasswordExpirePasswordDays',
 39        'lockout_duration_minutes': 'str',
 40        'lockout_duration_minutes_metadata': 'AccountPasswordLockoutDurationMinutes',
 41        'lockout_duration_type': 'str',
 42        'lockout_duration_type_metadata': 'AccountPasswordLockoutDurationType',
 43        'minimum_password_age_days': 'str',
 44        'minimum_password_age_days_metadata': 'AccountPasswordMinimumPasswordAgeDays',
 45        'minimum_password_length': 'str',
 46        'minimum_password_length_metadata': 'AccountMinimumPasswordLength',
 47        'password_include_digit': 'str',
 48        'password_include_digit_or_special_character': 'str',
 49        'password_include_lower_case': 'str',
 50        'password_include_special_character': 'str',
 51        'password_include_upper_case': 'str',
 52        'password_strength_type': 'str',
 53        'password_strength_type_metadata': 'AccountPasswordStrengthType',
 54        'questions_required': 'str',
 55        'questions_required_metadata': 'AccountPasswordQuestionsRequired'
 56    }
 57
 58    attribute_map = {
 59        'expire_password': 'expirePassword',
 60        'expire_password_days': 'expirePasswordDays',
 61        'expire_password_days_metadata': 'expirePasswordDaysMetadata',
 62        'lockout_duration_minutes': 'lockoutDurationMinutes',
 63        'lockout_duration_minutes_metadata': 'lockoutDurationMinutesMetadata',
 64        'lockout_duration_type': 'lockoutDurationType',
 65        'lockout_duration_type_metadata': 'lockoutDurationTypeMetadata',
 66        'minimum_password_age_days': 'minimumPasswordAgeDays',
 67        'minimum_password_age_days_metadata': 'minimumPasswordAgeDaysMetadata',
 68        'minimum_password_length': 'minimumPasswordLength',
 69        'minimum_password_length_metadata': 'minimumPasswordLengthMetadata',
 70        'password_include_digit': 'passwordIncludeDigit',
 71        'password_include_digit_or_special_character': 'passwordIncludeDigitOrSpecialCharacter',
 72        'password_include_lower_case': 'passwordIncludeLowerCase',
 73        'password_include_special_character': 'passwordIncludeSpecialCharacter',
 74        'password_include_upper_case': 'passwordIncludeUpperCase',
 75        'password_strength_type': 'passwordStrengthType',
 76        'password_strength_type_metadata': 'passwordStrengthTypeMetadata',
 77        'questions_required': 'questionsRequired',
 78        'questions_required_metadata': 'questionsRequiredMetadata'
 79    }
 80
 81    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 82        """AccountPasswordRules - a model defined in Swagger"""  # noqa: E501
 83        if _configuration is None:
 84            _configuration = Configuration()
 85        self._configuration = _configuration
 86
 87        self._expire_password = None
 88        self._expire_password_days = None
 89        self._expire_password_days_metadata = None
 90        self._lockout_duration_minutes = None
 91        self._lockout_duration_minutes_metadata = None
 92        self._lockout_duration_type = None
 93        self._lockout_duration_type_metadata = None
 94        self._minimum_password_age_days = None
 95        self._minimum_password_age_days_metadata = None
 96        self._minimum_password_length = None
 97        self._minimum_password_length_metadata = None
 98        self._password_include_digit = None
 99        self._password_include_digit_or_special_character = None
100        self._password_include_lower_case = None
101        self._password_include_special_character = None
102        self._password_include_upper_case = None
103        self._password_strength_type = None
104        self._password_strength_type_metadata = None
105        self._questions_required = None
106        self._questions_required_metadata = None
107        self.discriminator = None
108
109        setattr(self, "_{}".format('expire_password'), kwargs.get('expire_password', None))
110        setattr(self, "_{}".format('expire_password_days'), kwargs.get('expire_password_days', None))
111        setattr(self, "_{}".format('expire_password_days_metadata'), kwargs.get('expire_password_days_metadata', None))
112        setattr(self, "_{}".format('lockout_duration_minutes'), kwargs.get('lockout_duration_minutes', None))
113        setattr(self, "_{}".format('lockout_duration_minutes_metadata'), kwargs.get('lockout_duration_minutes_metadata', None))
114        setattr(self, "_{}".format('lockout_duration_type'), kwargs.get('lockout_duration_type', None))
115        setattr(self, "_{}".format('lockout_duration_type_metadata'), kwargs.get('lockout_duration_type_metadata', None))
116        setattr(self, "_{}".format('minimum_password_age_days'), kwargs.get('minimum_password_age_days', None))
117        setattr(self, "_{}".format('minimum_password_age_days_metadata'), kwargs.get('minimum_password_age_days_metadata', None))
118        setattr(self, "_{}".format('minimum_password_length'), kwargs.get('minimum_password_length', None))
119        setattr(self, "_{}".format('minimum_password_length_metadata'), kwargs.get('minimum_password_length_metadata', None))
120        setattr(self, "_{}".format('password_include_digit'), kwargs.get('password_include_digit', None))
121        setattr(self, "_{}".format('password_include_digit_or_special_character'), kwargs.get('password_include_digit_or_special_character', None))
122        setattr(self, "_{}".format('password_include_lower_case'), kwargs.get('password_include_lower_case', None))
123        setattr(self, "_{}".format('password_include_special_character'), kwargs.get('password_include_special_character', None))
124        setattr(self, "_{}".format('password_include_upper_case'), kwargs.get('password_include_upper_case', None))
125        setattr(self, "_{}".format('password_strength_type'), kwargs.get('password_strength_type', None))
126        setattr(self, "_{}".format('password_strength_type_metadata'), kwargs.get('password_strength_type_metadata', None))
127        setattr(self, "_{}".format('questions_required'), kwargs.get('questions_required', None))
128        setattr(self, "_{}".format('questions_required_metadata'), kwargs.get('questions_required_metadata', None))
129
130    @property
131    def expire_password(self):
132        """Gets the expire_password of this AccountPasswordRules.  # noqa: E501
133
134          # noqa: E501
135
136        :return: The expire_password of this AccountPasswordRules.  # noqa: E501
137        :rtype: str
138        """
139        return self._expire_password
140
141    @expire_password.setter
142    def expire_password(self, expire_password):
143        """Sets the expire_password of this AccountPasswordRules.
144
145          # noqa: E501
146
147        :param expire_password: The expire_password of this AccountPasswordRules.  # noqa: E501
148        :type: str
149        """
150
151        self._expire_password = expire_password
152
153    @property
154    def expire_password_days(self):
155        """Gets the expire_password_days of this AccountPasswordRules.  # noqa: E501
156
157          # noqa: E501
158
159        :return: The expire_password_days of this AccountPasswordRules.  # noqa: E501
160        :rtype: str
161        """
162        return self._expire_password_days
163
164    @expire_password_days.setter
165    def expire_password_days(self, expire_password_days):
166        """Sets the expire_password_days of this AccountPasswordRules.
167
168          # noqa: E501
169
170        :param expire_password_days: The expire_password_days of this AccountPasswordRules.  # noqa: E501
171        :type: str
172        """
173
174        self._expire_password_days = expire_password_days
175
176    @property
177    def expire_password_days_metadata(self):
178        """Gets the expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
179
180        Metadata that indicates whether the `expirePasswordDays` property is editable.   # noqa: E501
181
182        :return: The expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
183        :rtype: AccountPasswordExpirePasswordDays
184        """
185        return self._expire_password_days_metadata
186
187    @expire_password_days_metadata.setter
188    def expire_password_days_metadata(self, expire_password_days_metadata):
189        """Sets the expire_password_days_metadata of this AccountPasswordRules.
190
191        Metadata that indicates whether the `expirePasswordDays` property is editable.   # noqa: E501
192
193        :param expire_password_days_metadata: The expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
194        :type: AccountPasswordExpirePasswordDays
195        """
196
197        self._expire_password_days_metadata = expire_password_days_metadata
198
199    @property
200    def lockout_duration_minutes(self):
201        """Gets the lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
202
203          # noqa: E501
204
205        :return: The lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
206        :rtype: str
207        """
208        return self._lockout_duration_minutes
209
210    @lockout_duration_minutes.setter
211    def lockout_duration_minutes(self, lockout_duration_minutes):
212        """Sets the lockout_duration_minutes of this AccountPasswordRules.
213
214          # noqa: E501
215
216        :param lockout_duration_minutes: The lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
217        :type: str
218        """
219
220        self._lockout_duration_minutes = lockout_duration_minutes
221
222    @property
223    def lockout_duration_minutes_metadata(self):
224        """Gets the lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
225
226        Metadata that indicates whether the `lockoutDurationMinutes` property is editable.   # noqa: E501
227
228        :return: The lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
229        :rtype: AccountPasswordLockoutDurationMinutes
230        """
231        return self._lockout_duration_minutes_metadata
232
233    @lockout_duration_minutes_metadata.setter
234    def lockout_duration_minutes_metadata(self, lockout_duration_minutes_metadata):
235        """Sets the lockout_duration_minutes_metadata of this AccountPasswordRules.
236
237        Metadata that indicates whether the `lockoutDurationMinutes` property is editable.   # noqa: E501
238
239        :param lockout_duration_minutes_metadata: The lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
240        :type: AccountPasswordLockoutDurationMinutes
241        """
242
243        self._lockout_duration_minutes_metadata = lockout_duration_minutes_metadata
244
245    @property
246    def lockout_duration_type(self):
247        """Gets the lockout_duration_type of this AccountPasswordRules.  # noqa: E501
248
249          # noqa: E501
250
251        :return: The lockout_duration_type of this AccountPasswordRules.  # noqa: E501
252        :rtype: str
253        """
254        return self._lockout_duration_type
255
256    @lockout_duration_type.setter
257    def lockout_duration_type(self, lockout_duration_type):
258        """Sets the lockout_duration_type of this AccountPasswordRules.
259
260          # noqa: E501
261
262        :param lockout_duration_type: The lockout_duration_type of this AccountPasswordRules.  # noqa: E501
263        :type: str
264        """
265
266        self._lockout_duration_type = lockout_duration_type
267
268    @property
269    def lockout_duration_type_metadata(self):
270        """Gets the lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
271
272        Metadata that indicates whether the `lockoutDurationType` property is editable.   # noqa: E501
273
274        :return: The lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
275        :rtype: AccountPasswordLockoutDurationType
276        """
277        return self._lockout_duration_type_metadata
278
279    @lockout_duration_type_metadata.setter
280    def lockout_duration_type_metadata(self, lockout_duration_type_metadata):
281        """Sets the lockout_duration_type_metadata of this AccountPasswordRules.
282
283        Metadata that indicates whether the `lockoutDurationType` property is editable.   # noqa: E501
284
285        :param lockout_duration_type_metadata: The lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
286        :type: AccountPasswordLockoutDurationType
287        """
288
289        self._lockout_duration_type_metadata = lockout_duration_type_metadata
290
291    @property
292    def minimum_password_age_days(self):
293        """Gets the minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
294
295          # noqa: E501
296
297        :return: The minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
298        :rtype: str
299        """
300        return self._minimum_password_age_days
301
302    @minimum_password_age_days.setter
303    def minimum_password_age_days(self, minimum_password_age_days):
304        """Sets the minimum_password_age_days of this AccountPasswordRules.
305
306          # noqa: E501
307
308        :param minimum_password_age_days: The minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
309        :type: str
310        """
311
312        self._minimum_password_age_days = minimum_password_age_days
313
314    @property
315    def minimum_password_age_days_metadata(self):
316        """Gets the minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
317
318        Metadata that indicates whether the `minimumPasswordAgeDays` property is editable.   # noqa: E501
319
320        :return: The minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
321        :rtype: AccountPasswordMinimumPasswordAgeDays
322        """
323        return self._minimum_password_age_days_metadata
324
325    @minimum_password_age_days_metadata.setter
326    def minimum_password_age_days_metadata(self, minimum_password_age_days_metadata):
327        """Sets the minimum_password_age_days_metadata of this AccountPasswordRules.
328
329        Metadata that indicates whether the `minimumPasswordAgeDays` property is editable.   # noqa: E501
330
331        :param minimum_password_age_days_metadata: The minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
332        :type: AccountPasswordMinimumPasswordAgeDays
333        """
334
335        self._minimum_password_age_days_metadata = minimum_password_age_days_metadata
336
337    @property
338    def minimum_password_length(self):
339        """Gets the minimum_password_length of this AccountPasswordRules.  # noqa: E501
340
341          # noqa: E501
342
343        :return: The minimum_password_length of this AccountPasswordRules.  # noqa: E501
344        :rtype: str
345        """
346        return self._minimum_password_length
347
348    @minimum_password_length.setter
349    def minimum_password_length(self, minimum_password_length):
350        """Sets the minimum_password_length of this AccountPasswordRules.
351
352          # noqa: E501
353
354        :param minimum_password_length: The minimum_password_length of this AccountPasswordRules.  # noqa: E501
355        :type: str
356        """
357
358        self._minimum_password_length = minimum_password_length
359
360    @property
361    def minimum_password_length_metadata(self):
362        """Gets the minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
363
364        Metadata that indicates whether the `minimumPasswordLength` property is editable.   # noqa: E501
365
366        :return: The minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
367        :rtype: AccountMinimumPasswordLength
368        """
369        return self._minimum_password_length_metadata
370
371    @minimum_password_length_metadata.setter
372    def minimum_password_length_metadata(self, minimum_password_length_metadata):
373        """Sets the minimum_password_length_metadata of this AccountPasswordRules.
374
375        Metadata that indicates whether the `minimumPasswordLength` property is editable.   # noqa: E501
376
377        :param minimum_password_length_metadata: The minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
378        :type: AccountMinimumPasswordLength
379        """
380
381        self._minimum_password_length_metadata = minimum_password_length_metadata
382
383    @property
384    def password_include_digit(self):
385        """Gets the password_include_digit of this AccountPasswordRules.  # noqa: E501
386
387          # noqa: E501
388
389        :return: The password_include_digit of this AccountPasswordRules.  # noqa: E501
390        :rtype: str
391        """
392        return self._password_include_digit
393
394    @password_include_digit.setter
395    def password_include_digit(self, password_include_digit):
396        """Sets the password_include_digit of this AccountPasswordRules.
397
398          # noqa: E501
399
400        :param password_include_digit: The password_include_digit of this AccountPasswordRules.  # noqa: E501
401        :type: str
402        """
403
404        self._password_include_digit = password_include_digit
405
406    @property
407    def password_include_digit_or_special_character(self):
408        """Gets the password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
409
410          # noqa: E501
411
412        :return: The password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
413        :rtype: str
414        """
415        return self._password_include_digit_or_special_character
416
417    @password_include_digit_or_special_character.setter
418    def password_include_digit_or_special_character(self, password_include_digit_or_special_character):
419        """Sets the password_include_digit_or_special_character of this AccountPasswordRules.
420
421          # noqa: E501
422
423        :param password_include_digit_or_special_character: The password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
424        :type: str
425        """
426
427        self._password_include_digit_or_special_character = password_include_digit_or_special_character
428
429    @property
430    def password_include_lower_case(self):
431        """Gets the password_include_lower_case of this AccountPasswordRules.  # noqa: E501
432
433          # noqa: E501
434
435        :return: The password_include_lower_case of this AccountPasswordRules.  # noqa: E501
436        :rtype: str
437        """
438        return self._password_include_lower_case
439
440    @password_include_lower_case.setter
441    def password_include_lower_case(self, password_include_lower_case):
442        """Sets the password_include_lower_case of this AccountPasswordRules.
443
444          # noqa: E501
445
446        :param password_include_lower_case: The password_include_lower_case of this AccountPasswordRules.  # noqa: E501
447        :type: str
448        """
449
450        self._password_include_lower_case = password_include_lower_case
451
452    @property
453    def password_include_special_character(self):
454        """Gets the password_include_special_character of this AccountPasswordRules.  # noqa: E501
455
456          # noqa: E501
457
458        :return: The password_include_special_character of this AccountPasswordRules.  # noqa: E501
459        :rtype: str
460        """
461        return self._password_include_special_character
462
463    @password_include_special_character.setter
464    def password_include_special_character(self, password_include_special_character):
465        """Sets the password_include_special_character of this AccountPasswordRules.
466
467          # noqa: E501
468
469        :param password_include_special_character: The password_include_special_character of this AccountPasswordRules.  # noqa: E501
470        :type: str
471        """
472
473        self._password_include_special_character = password_include_special_character
474
475    @property
476    def password_include_upper_case(self):
477        """Gets the password_include_upper_case of this AccountPasswordRules.  # noqa: E501
478
479          # noqa: E501
480
481        :return: The password_include_upper_case of this AccountPasswordRules.  # noqa: E501
482        :rtype: str
483        """
484        return self._password_include_upper_case
485
486    @password_include_upper_case.setter
487    def password_include_upper_case(self, password_include_upper_case):
488        """Sets the password_include_upper_case of this AccountPasswordRules.
489
490          # noqa: E501
491
492        :param password_include_upper_case: The password_include_upper_case of this AccountPasswordRules.  # noqa: E501
493        :type: str
494        """
495
496        self._password_include_upper_case = password_include_upper_case
497
498    @property
499    def password_strength_type(self):
500        """Gets the password_strength_type of this AccountPasswordRules.  # noqa: E501
501
502          # noqa: E501
503
504        :return: The password_strength_type of this AccountPasswordRules.  # noqa: E501
505        :rtype: str
506        """
507        return self._password_strength_type
508
509    @password_strength_type.setter
510    def password_strength_type(self, password_strength_type):
511        """Sets the password_strength_type of this AccountPasswordRules.
512
513          # noqa: E501
514
515        :param password_strength_type: The password_strength_type of this AccountPasswordRules.  # noqa: E501
516        :type: str
517        """
518
519        self._password_strength_type = password_strength_type
520
521    @property
522    def password_strength_type_metadata(self):
523        """Gets the password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
524
525        Metadata that indicates whether the `passwordStrengthType` property is editable.   # noqa: E501
526
527        :return: The password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
528        :rtype: AccountPasswordStrengthType
529        """
530        return self._password_strength_type_metadata
531
532    @password_strength_type_metadata.setter
533    def password_strength_type_metadata(self, password_strength_type_metadata):
534        """Sets the password_strength_type_metadata of this AccountPasswordRules.
535
536        Metadata that indicates whether the `passwordStrengthType` property is editable.   # noqa: E501
537
538        :param password_strength_type_metadata: The password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
539        :type: AccountPasswordStrengthType
540        """
541
542        self._password_strength_type_metadata = password_strength_type_metadata
543
544    @property
545    def questions_required(self):
546        """Gets the questions_required of this AccountPasswordRules.  # noqa: E501
547
548          # noqa: E501
549
550        :return: The questions_required of this AccountPasswordRules.  # noqa: E501
551        :rtype: str
552        """
553        return self._questions_required
554
555    @questions_required.setter
556    def questions_required(self, questions_required):
557        """Sets the questions_required of this AccountPasswordRules.
558
559          # noqa: E501
560
561        :param questions_required: The questions_required of this AccountPasswordRules.  # noqa: E501
562        :type: str
563        """
564
565        self._questions_required = questions_required
566
567    @property
568    def questions_required_metadata(self):
569        """Gets the questions_required_metadata of this AccountPasswordRules.  # noqa: E501
570
571        Metadata that indicates whether the `questionsRequired` property is editable.   # noqa: E501
572
573        :return: The questions_required_metadata of this AccountPasswordRules.  # noqa: E501
574        :rtype: AccountPasswordQuestionsRequired
575        """
576        return self._questions_required_metadata
577
578    @questions_required_metadata.setter
579    def questions_required_metadata(self, questions_required_metadata):
580        """Sets the questions_required_metadata of this AccountPasswordRules.
581
582        Metadata that indicates whether the `questionsRequired` property is editable.   # noqa: E501
583
584        :param questions_required_metadata: The questions_required_metadata of this AccountPasswordRules.  # noqa: E501
585        :type: AccountPasswordQuestionsRequired
586        """
587
588        self._questions_required_metadata = questions_required_metadata
589
590    def to_dict(self):
591        """Returns the model properties as a dict"""
592        result = {}
593
594        for attr, _ in six.iteritems(self.swagger_types):
595            value = getattr(self, attr)
596            if isinstance(value, list):
597                result[attr] = list(map(
598                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
599                    value
600                ))
601            elif hasattr(value, "to_dict"):
602                result[attr] = value.to_dict()
603            elif isinstance(value, dict):
604                result[attr] = dict(map(
605                    lambda item: (item[0], item[1].to_dict())
606                    if hasattr(item[1], "to_dict") else item,
607                    value.items()
608                ))
609            else:
610                result[attr] = value
611        if issubclass(AccountPasswordRules, dict):
612            for key, value in self.items():
613                result[key] = value
614
615        return result
616
617    def to_str(self):
618        """Returns the string representation of the model"""
619        return pprint.pformat(self.to_dict())
620
621    def __repr__(self):
622        """For `print` and `pprint`"""
623        return self.to_str()
624
625    def __eq__(self, other):
626        """Returns true if both objects are equal"""
627        if not isinstance(other, AccountPasswordRules):
628            return False
629
630        return self.to_dict() == other.to_dict()
631
632    def __ne__(self, other):
633        """Returns true if both objects are not equal"""
634        if not isinstance(other, AccountPasswordRules):
635            return True
636
637        return self.to_dict() != other.to_dict()
class AccountPasswordRules:
 23class AccountPasswordRules(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        'expire_password': 'str',
 38        'expire_password_days': 'str',
 39        'expire_password_days_metadata': 'AccountPasswordExpirePasswordDays',
 40        'lockout_duration_minutes': 'str',
 41        'lockout_duration_minutes_metadata': 'AccountPasswordLockoutDurationMinutes',
 42        'lockout_duration_type': 'str',
 43        'lockout_duration_type_metadata': 'AccountPasswordLockoutDurationType',
 44        'minimum_password_age_days': 'str',
 45        'minimum_password_age_days_metadata': 'AccountPasswordMinimumPasswordAgeDays',
 46        'minimum_password_length': 'str',
 47        'minimum_password_length_metadata': 'AccountMinimumPasswordLength',
 48        'password_include_digit': 'str',
 49        'password_include_digit_or_special_character': 'str',
 50        'password_include_lower_case': 'str',
 51        'password_include_special_character': 'str',
 52        'password_include_upper_case': 'str',
 53        'password_strength_type': 'str',
 54        'password_strength_type_metadata': 'AccountPasswordStrengthType',
 55        'questions_required': 'str',
 56        'questions_required_metadata': 'AccountPasswordQuestionsRequired'
 57    }
 58
 59    attribute_map = {
 60        'expire_password': 'expirePassword',
 61        'expire_password_days': 'expirePasswordDays',
 62        'expire_password_days_metadata': 'expirePasswordDaysMetadata',
 63        'lockout_duration_minutes': 'lockoutDurationMinutes',
 64        'lockout_duration_minutes_metadata': 'lockoutDurationMinutesMetadata',
 65        'lockout_duration_type': 'lockoutDurationType',
 66        'lockout_duration_type_metadata': 'lockoutDurationTypeMetadata',
 67        'minimum_password_age_days': 'minimumPasswordAgeDays',
 68        'minimum_password_age_days_metadata': 'minimumPasswordAgeDaysMetadata',
 69        'minimum_password_length': 'minimumPasswordLength',
 70        'minimum_password_length_metadata': 'minimumPasswordLengthMetadata',
 71        'password_include_digit': 'passwordIncludeDigit',
 72        'password_include_digit_or_special_character': 'passwordIncludeDigitOrSpecialCharacter',
 73        'password_include_lower_case': 'passwordIncludeLowerCase',
 74        'password_include_special_character': 'passwordIncludeSpecialCharacter',
 75        'password_include_upper_case': 'passwordIncludeUpperCase',
 76        'password_strength_type': 'passwordStrengthType',
 77        'password_strength_type_metadata': 'passwordStrengthTypeMetadata',
 78        'questions_required': 'questionsRequired',
 79        'questions_required_metadata': 'questionsRequiredMetadata'
 80    }
 81
 82    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 83        """AccountPasswordRules - a model defined in Swagger"""  # noqa: E501
 84        if _configuration is None:
 85            _configuration = Configuration()
 86        self._configuration = _configuration
 87
 88        self._expire_password = None
 89        self._expire_password_days = None
 90        self._expire_password_days_metadata = None
 91        self._lockout_duration_minutes = None
 92        self._lockout_duration_minutes_metadata = None
 93        self._lockout_duration_type = None
 94        self._lockout_duration_type_metadata = None
 95        self._minimum_password_age_days = None
 96        self._minimum_password_age_days_metadata = None
 97        self._minimum_password_length = None
 98        self._minimum_password_length_metadata = None
 99        self._password_include_digit = None
100        self._password_include_digit_or_special_character = None
101        self._password_include_lower_case = None
102        self._password_include_special_character = None
103        self._password_include_upper_case = None
104        self._password_strength_type = None
105        self._password_strength_type_metadata = None
106        self._questions_required = None
107        self._questions_required_metadata = None
108        self.discriminator = None
109
110        setattr(self, "_{}".format('expire_password'), kwargs.get('expire_password', None))
111        setattr(self, "_{}".format('expire_password_days'), kwargs.get('expire_password_days', None))
112        setattr(self, "_{}".format('expire_password_days_metadata'), kwargs.get('expire_password_days_metadata', None))
113        setattr(self, "_{}".format('lockout_duration_minutes'), kwargs.get('lockout_duration_minutes', None))
114        setattr(self, "_{}".format('lockout_duration_minutes_metadata'), kwargs.get('lockout_duration_minutes_metadata', None))
115        setattr(self, "_{}".format('lockout_duration_type'), kwargs.get('lockout_duration_type', None))
116        setattr(self, "_{}".format('lockout_duration_type_metadata'), kwargs.get('lockout_duration_type_metadata', None))
117        setattr(self, "_{}".format('minimum_password_age_days'), kwargs.get('minimum_password_age_days', None))
118        setattr(self, "_{}".format('minimum_password_age_days_metadata'), kwargs.get('minimum_password_age_days_metadata', None))
119        setattr(self, "_{}".format('minimum_password_length'), kwargs.get('minimum_password_length', None))
120        setattr(self, "_{}".format('minimum_password_length_metadata'), kwargs.get('minimum_password_length_metadata', None))
121        setattr(self, "_{}".format('password_include_digit'), kwargs.get('password_include_digit', None))
122        setattr(self, "_{}".format('password_include_digit_or_special_character'), kwargs.get('password_include_digit_or_special_character', None))
123        setattr(self, "_{}".format('password_include_lower_case'), kwargs.get('password_include_lower_case', None))
124        setattr(self, "_{}".format('password_include_special_character'), kwargs.get('password_include_special_character', None))
125        setattr(self, "_{}".format('password_include_upper_case'), kwargs.get('password_include_upper_case', None))
126        setattr(self, "_{}".format('password_strength_type'), kwargs.get('password_strength_type', None))
127        setattr(self, "_{}".format('password_strength_type_metadata'), kwargs.get('password_strength_type_metadata', None))
128        setattr(self, "_{}".format('questions_required'), kwargs.get('questions_required', None))
129        setattr(self, "_{}".format('questions_required_metadata'), kwargs.get('questions_required_metadata', None))
130
131    @property
132    def expire_password(self):
133        """Gets the expire_password of this AccountPasswordRules.  # noqa: E501
134
135          # noqa: E501
136
137        :return: The expire_password of this AccountPasswordRules.  # noqa: E501
138        :rtype: str
139        """
140        return self._expire_password
141
142    @expire_password.setter
143    def expire_password(self, expire_password):
144        """Sets the expire_password of this AccountPasswordRules.
145
146          # noqa: E501
147
148        :param expire_password: The expire_password of this AccountPasswordRules.  # noqa: E501
149        :type: str
150        """
151
152        self._expire_password = expire_password
153
154    @property
155    def expire_password_days(self):
156        """Gets the expire_password_days of this AccountPasswordRules.  # noqa: E501
157
158          # noqa: E501
159
160        :return: The expire_password_days of this AccountPasswordRules.  # noqa: E501
161        :rtype: str
162        """
163        return self._expire_password_days
164
165    @expire_password_days.setter
166    def expire_password_days(self, expire_password_days):
167        """Sets the expire_password_days of this AccountPasswordRules.
168
169          # noqa: E501
170
171        :param expire_password_days: The expire_password_days of this AccountPasswordRules.  # noqa: E501
172        :type: str
173        """
174
175        self._expire_password_days = expire_password_days
176
177    @property
178    def expire_password_days_metadata(self):
179        """Gets the expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
180
181        Metadata that indicates whether the `expirePasswordDays` property is editable.   # noqa: E501
182
183        :return: The expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
184        :rtype: AccountPasswordExpirePasswordDays
185        """
186        return self._expire_password_days_metadata
187
188    @expire_password_days_metadata.setter
189    def expire_password_days_metadata(self, expire_password_days_metadata):
190        """Sets the expire_password_days_metadata of this AccountPasswordRules.
191
192        Metadata that indicates whether the `expirePasswordDays` property is editable.   # noqa: E501
193
194        :param expire_password_days_metadata: The expire_password_days_metadata of this AccountPasswordRules.  # noqa: E501
195        :type: AccountPasswordExpirePasswordDays
196        """
197
198        self._expire_password_days_metadata = expire_password_days_metadata
199
200    @property
201    def lockout_duration_minutes(self):
202        """Gets the lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
203
204          # noqa: E501
205
206        :return: The lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
207        :rtype: str
208        """
209        return self._lockout_duration_minutes
210
211    @lockout_duration_minutes.setter
212    def lockout_duration_minutes(self, lockout_duration_minutes):
213        """Sets the lockout_duration_minutes of this AccountPasswordRules.
214
215          # noqa: E501
216
217        :param lockout_duration_minutes: The lockout_duration_minutes of this AccountPasswordRules.  # noqa: E501
218        :type: str
219        """
220
221        self._lockout_duration_minutes = lockout_duration_minutes
222
223    @property
224    def lockout_duration_minutes_metadata(self):
225        """Gets the lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
226
227        Metadata that indicates whether the `lockoutDurationMinutes` property is editable.   # noqa: E501
228
229        :return: The lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
230        :rtype: AccountPasswordLockoutDurationMinutes
231        """
232        return self._lockout_duration_minutes_metadata
233
234    @lockout_duration_minutes_metadata.setter
235    def lockout_duration_minutes_metadata(self, lockout_duration_minutes_metadata):
236        """Sets the lockout_duration_minutes_metadata of this AccountPasswordRules.
237
238        Metadata that indicates whether the `lockoutDurationMinutes` property is editable.   # noqa: E501
239
240        :param lockout_duration_minutes_metadata: The lockout_duration_minutes_metadata of this AccountPasswordRules.  # noqa: E501
241        :type: AccountPasswordLockoutDurationMinutes
242        """
243
244        self._lockout_duration_minutes_metadata = lockout_duration_minutes_metadata
245
246    @property
247    def lockout_duration_type(self):
248        """Gets the lockout_duration_type of this AccountPasswordRules.  # noqa: E501
249
250          # noqa: E501
251
252        :return: The lockout_duration_type of this AccountPasswordRules.  # noqa: E501
253        :rtype: str
254        """
255        return self._lockout_duration_type
256
257    @lockout_duration_type.setter
258    def lockout_duration_type(self, lockout_duration_type):
259        """Sets the lockout_duration_type of this AccountPasswordRules.
260
261          # noqa: E501
262
263        :param lockout_duration_type: The lockout_duration_type of this AccountPasswordRules.  # noqa: E501
264        :type: str
265        """
266
267        self._lockout_duration_type = lockout_duration_type
268
269    @property
270    def lockout_duration_type_metadata(self):
271        """Gets the lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
272
273        Metadata that indicates whether the `lockoutDurationType` property is editable.   # noqa: E501
274
275        :return: The lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
276        :rtype: AccountPasswordLockoutDurationType
277        """
278        return self._lockout_duration_type_metadata
279
280    @lockout_duration_type_metadata.setter
281    def lockout_duration_type_metadata(self, lockout_duration_type_metadata):
282        """Sets the lockout_duration_type_metadata of this AccountPasswordRules.
283
284        Metadata that indicates whether the `lockoutDurationType` property is editable.   # noqa: E501
285
286        :param lockout_duration_type_metadata: The lockout_duration_type_metadata of this AccountPasswordRules.  # noqa: E501
287        :type: AccountPasswordLockoutDurationType
288        """
289
290        self._lockout_duration_type_metadata = lockout_duration_type_metadata
291
292    @property
293    def minimum_password_age_days(self):
294        """Gets the minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
295
296          # noqa: E501
297
298        :return: The minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
299        :rtype: str
300        """
301        return self._minimum_password_age_days
302
303    @minimum_password_age_days.setter
304    def minimum_password_age_days(self, minimum_password_age_days):
305        """Sets the minimum_password_age_days of this AccountPasswordRules.
306
307          # noqa: E501
308
309        :param minimum_password_age_days: The minimum_password_age_days of this AccountPasswordRules.  # noqa: E501
310        :type: str
311        """
312
313        self._minimum_password_age_days = minimum_password_age_days
314
315    @property
316    def minimum_password_age_days_metadata(self):
317        """Gets the minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
318
319        Metadata that indicates whether the `minimumPasswordAgeDays` property is editable.   # noqa: E501
320
321        :return: The minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
322        :rtype: AccountPasswordMinimumPasswordAgeDays
323        """
324        return self._minimum_password_age_days_metadata
325
326    @minimum_password_age_days_metadata.setter
327    def minimum_password_age_days_metadata(self, minimum_password_age_days_metadata):
328        """Sets the minimum_password_age_days_metadata of this AccountPasswordRules.
329
330        Metadata that indicates whether the `minimumPasswordAgeDays` property is editable.   # noqa: E501
331
332        :param minimum_password_age_days_metadata: The minimum_password_age_days_metadata of this AccountPasswordRules.  # noqa: E501
333        :type: AccountPasswordMinimumPasswordAgeDays
334        """
335
336        self._minimum_password_age_days_metadata = minimum_password_age_days_metadata
337
338    @property
339    def minimum_password_length(self):
340        """Gets the minimum_password_length of this AccountPasswordRules.  # noqa: E501
341
342          # noqa: E501
343
344        :return: The minimum_password_length of this AccountPasswordRules.  # noqa: E501
345        :rtype: str
346        """
347        return self._minimum_password_length
348
349    @minimum_password_length.setter
350    def minimum_password_length(self, minimum_password_length):
351        """Sets the minimum_password_length of this AccountPasswordRules.
352
353          # noqa: E501
354
355        :param minimum_password_length: The minimum_password_length of this AccountPasswordRules.  # noqa: E501
356        :type: str
357        """
358
359        self._minimum_password_length = minimum_password_length
360
361    @property
362    def minimum_password_length_metadata(self):
363        """Gets the minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
364
365        Metadata that indicates whether the `minimumPasswordLength` property is editable.   # noqa: E501
366
367        :return: The minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
368        :rtype: AccountMinimumPasswordLength
369        """
370        return self._minimum_password_length_metadata
371
372    @minimum_password_length_metadata.setter
373    def minimum_password_length_metadata(self, minimum_password_length_metadata):
374        """Sets the minimum_password_length_metadata of this AccountPasswordRules.
375
376        Metadata that indicates whether the `minimumPasswordLength` property is editable.   # noqa: E501
377
378        :param minimum_password_length_metadata: The minimum_password_length_metadata of this AccountPasswordRules.  # noqa: E501
379        :type: AccountMinimumPasswordLength
380        """
381
382        self._minimum_password_length_metadata = minimum_password_length_metadata
383
384    @property
385    def password_include_digit(self):
386        """Gets the password_include_digit of this AccountPasswordRules.  # noqa: E501
387
388          # noqa: E501
389
390        :return: The password_include_digit of this AccountPasswordRules.  # noqa: E501
391        :rtype: str
392        """
393        return self._password_include_digit
394
395    @password_include_digit.setter
396    def password_include_digit(self, password_include_digit):
397        """Sets the password_include_digit of this AccountPasswordRules.
398
399          # noqa: E501
400
401        :param password_include_digit: The password_include_digit of this AccountPasswordRules.  # noqa: E501
402        :type: str
403        """
404
405        self._password_include_digit = password_include_digit
406
407    @property
408    def password_include_digit_or_special_character(self):
409        """Gets the password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
410
411          # noqa: E501
412
413        :return: The password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
414        :rtype: str
415        """
416        return self._password_include_digit_or_special_character
417
418    @password_include_digit_or_special_character.setter
419    def password_include_digit_or_special_character(self, password_include_digit_or_special_character):
420        """Sets the password_include_digit_or_special_character of this AccountPasswordRules.
421
422          # noqa: E501
423
424        :param password_include_digit_or_special_character: The password_include_digit_or_special_character of this AccountPasswordRules.  # noqa: E501
425        :type: str
426        """
427
428        self._password_include_digit_or_special_character = password_include_digit_or_special_character
429
430    @property
431    def password_include_lower_case(self):
432        """Gets the password_include_lower_case of this AccountPasswordRules.  # noqa: E501
433
434          # noqa: E501
435
436        :return: The password_include_lower_case of this AccountPasswordRules.  # noqa: E501
437        :rtype: str
438        """
439        return self._password_include_lower_case
440
441    @password_include_lower_case.setter
442    def password_include_lower_case(self, password_include_lower_case):
443        """Sets the password_include_lower_case of this AccountPasswordRules.
444
445          # noqa: E501
446
447        :param password_include_lower_case: The password_include_lower_case of this AccountPasswordRules.  # noqa: E501
448        :type: str
449        """
450
451        self._password_include_lower_case = password_include_lower_case
452
453    @property
454    def password_include_special_character(self):
455        """Gets the password_include_special_character of this AccountPasswordRules.  # noqa: E501
456
457          # noqa: E501
458
459        :return: The password_include_special_character of this AccountPasswordRules.  # noqa: E501
460        :rtype: str
461        """
462        return self._password_include_special_character
463
464    @password_include_special_character.setter
465    def password_include_special_character(self, password_include_special_character):
466        """Sets the password_include_special_character of this AccountPasswordRules.
467
468          # noqa: E501
469
470        :param password_include_special_character: The password_include_special_character of this AccountPasswordRules.  # noqa: E501
471        :type: str
472        """
473
474        self._password_include_special_character = password_include_special_character
475
476    @property
477    def password_include_upper_case(self):
478        """Gets the password_include_upper_case of this AccountPasswordRules.  # noqa: E501
479
480          # noqa: E501
481
482        :return: The password_include_upper_case of this AccountPasswordRules.  # noqa: E501
483        :rtype: str
484        """
485        return self._password_include_upper_case
486
487    @password_include_upper_case.setter
488    def password_include_upper_case(self, password_include_upper_case):
489        """Sets the password_include_upper_case of this AccountPasswordRules.
490
491          # noqa: E501
492
493        :param password_include_upper_case: The password_include_upper_case of this AccountPasswordRules.  # noqa: E501
494        :type: str
495        """
496
497        self._password_include_upper_case = password_include_upper_case
498
499    @property
500    def password_strength_type(self):
501        """Gets the password_strength_type of this AccountPasswordRules.  # noqa: E501
502
503          # noqa: E501
504
505        :return: The password_strength_type of this AccountPasswordRules.  # noqa: E501
506        :rtype: str
507        """
508        return self._password_strength_type
509
510    @password_strength_type.setter
511    def password_strength_type(self, password_strength_type):
512        """Sets the password_strength_type of this AccountPasswordRules.
513
514          # noqa: E501
515
516        :param password_strength_type: The password_strength_type of this AccountPasswordRules.  # noqa: E501
517        :type: str
518        """
519
520        self._password_strength_type = password_strength_type
521
522    @property
523    def password_strength_type_metadata(self):
524        """Gets the password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
525
526        Metadata that indicates whether the `passwordStrengthType` property is editable.   # noqa: E501
527
528        :return: The password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
529        :rtype: AccountPasswordStrengthType
530        """
531        return self._password_strength_type_metadata
532
533    @password_strength_type_metadata.setter
534    def password_strength_type_metadata(self, password_strength_type_metadata):
535        """Sets the password_strength_type_metadata of this AccountPasswordRules.
536
537        Metadata that indicates whether the `passwordStrengthType` property is editable.   # noqa: E501
538
539        :param password_strength_type_metadata: The password_strength_type_metadata of this AccountPasswordRules.  # noqa: E501
540        :type: AccountPasswordStrengthType
541        """
542
543        self._password_strength_type_metadata = password_strength_type_metadata
544
545    @property
546    def questions_required(self):
547        """Gets the questions_required of this AccountPasswordRules.  # noqa: E501
548
549          # noqa: E501
550
551        :return: The questions_required of this AccountPasswordRules.  # noqa: E501
552        :rtype: str
553        """
554        return self._questions_required
555
556    @questions_required.setter
557    def questions_required(self, questions_required):
558        """Sets the questions_required of this AccountPasswordRules.
559
560          # noqa: E501
561
562        :param questions_required: The questions_required of this AccountPasswordRules.  # noqa: E501
563        :type: str
564        """
565
566        self._questions_required = questions_required
567
568    @property
569    def questions_required_metadata(self):
570        """Gets the questions_required_metadata of this AccountPasswordRules.  # noqa: E501
571
572        Metadata that indicates whether the `questionsRequired` property is editable.   # noqa: E501
573
574        :return: The questions_required_metadata of this AccountPasswordRules.  # noqa: E501
575        :rtype: AccountPasswordQuestionsRequired
576        """
577        return self._questions_required_metadata
578
579    @questions_required_metadata.setter
580    def questions_required_metadata(self, questions_required_metadata):
581        """Sets the questions_required_metadata of this AccountPasswordRules.
582
583        Metadata that indicates whether the `questionsRequired` property is editable.   # noqa: E501
584
585        :param questions_required_metadata: The questions_required_metadata of this AccountPasswordRules.  # noqa: E501
586        :type: AccountPasswordQuestionsRequired
587        """
588
589        self._questions_required_metadata = questions_required_metadata
590
591    def to_dict(self):
592        """Returns the model properties as a dict"""
593        result = {}
594
595        for attr, _ in six.iteritems(self.swagger_types):
596            value = getattr(self, attr)
597            if isinstance(value, list):
598                result[attr] = list(map(
599                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
600                    value
601                ))
602            elif hasattr(value, "to_dict"):
603                result[attr] = value.to_dict()
604            elif isinstance(value, dict):
605                result[attr] = dict(map(
606                    lambda item: (item[0], item[1].to_dict())
607                    if hasattr(item[1], "to_dict") else item,
608                    value.items()
609                ))
610            else:
611                result[attr] = value
612        if issubclass(AccountPasswordRules, dict):
613            for key, value in self.items():
614                result[key] = value
615
616        return result
617
618    def to_str(self):
619        """Returns the string representation of the model"""
620        return pprint.pformat(self.to_dict())
621
622    def __repr__(self):
623        """For `print` and `pprint`"""
624        return self.to_str()
625
626    def __eq__(self, other):
627        """Returns true if both objects are equal"""
628        if not isinstance(other, AccountPasswordRules):
629            return False
630
631        return self.to_dict() == other.to_dict()
632
633    def __ne__(self, other):
634        """Returns true if both objects are not equal"""
635        if not isinstance(other, AccountPasswordRules):
636            return True
637
638        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.

AccountPasswordRules(_configuration=None, **kwargs)
 82    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 83        """AccountPasswordRules - a model defined in Swagger"""  # noqa: E501
 84        if _configuration is None:
 85            _configuration = Configuration()
 86        self._configuration = _configuration
 87
 88        self._expire_password = None
 89        self._expire_password_days = None
 90        self._expire_password_days_metadata = None
 91        self._lockout_duration_minutes = None
 92        self._lockout_duration_minutes_metadata = None
 93        self._lockout_duration_type = None
 94        self._lockout_duration_type_metadata = None
 95        self._minimum_password_age_days = None
 96        self._minimum_password_age_days_metadata = None
 97        self._minimum_password_length = None
 98        self._minimum_password_length_metadata = None
 99        self._password_include_digit = None
100        self._password_include_digit_or_special_character = None
101        self._password_include_lower_case = None
102        self._password_include_special_character = None
103        self._password_include_upper_case = None
104        self._password_strength_type = None
105        self._password_strength_type_metadata = None
106        self._questions_required = None
107        self._questions_required_metadata = None
108        self.discriminator = None
109
110        setattr(self, "_{}".format('expire_password'), kwargs.get('expire_password', None))
111        setattr(self, "_{}".format('expire_password_days'), kwargs.get('expire_password_days', None))
112        setattr(self, "_{}".format('expire_password_days_metadata'), kwargs.get('expire_password_days_metadata', None))
113        setattr(self, "_{}".format('lockout_duration_minutes'), kwargs.get('lockout_duration_minutes', None))
114        setattr(self, "_{}".format('lockout_duration_minutes_metadata'), kwargs.get('lockout_duration_minutes_metadata', None))
115        setattr(self, "_{}".format('lockout_duration_type'), kwargs.get('lockout_duration_type', None))
116        setattr(self, "_{}".format('lockout_duration_type_metadata'), kwargs.get('lockout_duration_type_metadata', None))
117        setattr(self, "_{}".format('minimum_password_age_days'), kwargs.get('minimum_password_age_days', None))
118        setattr(self, "_{}".format('minimum_password_age_days_metadata'), kwargs.get('minimum_password_age_days_metadata', None))
119        setattr(self, "_{}".format('minimum_password_length'), kwargs.get('minimum_password_length', None))
120        setattr(self, "_{}".format('minimum_password_length_metadata'), kwargs.get('minimum_password_length_metadata', None))
121        setattr(self, "_{}".format('password_include_digit'), kwargs.get('password_include_digit', None))
122        setattr(self, "_{}".format('password_include_digit_or_special_character'), kwargs.get('password_include_digit_or_special_character', None))
123        setattr(self, "_{}".format('password_include_lower_case'), kwargs.get('password_include_lower_case', None))
124        setattr(self, "_{}".format('password_include_special_character'), kwargs.get('password_include_special_character', None))
125        setattr(self, "_{}".format('password_include_upper_case'), kwargs.get('password_include_upper_case', None))
126        setattr(self, "_{}".format('password_strength_type'), kwargs.get('password_strength_type', None))
127        setattr(self, "_{}".format('password_strength_type_metadata'), kwargs.get('password_strength_type_metadata', None))
128        setattr(self, "_{}".format('questions_required'), kwargs.get('questions_required', None))
129        setattr(self, "_{}".format('questions_required_metadata'), kwargs.get('questions_required_metadata', None))

AccountPasswordRules - a model defined in Swagger

swagger_types = {'expire_password': 'str', 'expire_password_days': 'str', 'expire_password_days_metadata': 'AccountPasswordExpirePasswordDays', 'lockout_duration_minutes': 'str', 'lockout_duration_minutes_metadata': 'AccountPasswordLockoutDurationMinutes', 'lockout_duration_type': 'str', 'lockout_duration_type_metadata': 'AccountPasswordLockoutDurationType', 'minimum_password_age_days': 'str', 'minimum_password_age_days_metadata': 'AccountPasswordMinimumPasswordAgeDays', 'minimum_password_length': 'str', 'minimum_password_length_metadata': 'AccountMinimumPasswordLength', 'password_include_digit': 'str', 'password_include_digit_or_special_character': 'str', 'password_include_lower_case': 'str', 'password_include_special_character': 'str', 'password_include_upper_case': 'str', 'password_strength_type': 'str', 'password_strength_type_metadata': 'AccountPasswordStrengthType', 'questions_required': 'str', 'questions_required_metadata': 'AccountPasswordQuestionsRequired'}
attribute_map = {'expire_password': 'expirePassword', 'expire_password_days': 'expirePasswordDays', 'expire_password_days_metadata': 'expirePasswordDaysMetadata', 'lockout_duration_minutes': 'lockoutDurationMinutes', 'lockout_duration_minutes_metadata': 'lockoutDurationMinutesMetadata', 'lockout_duration_type': 'lockoutDurationType', 'lockout_duration_type_metadata': 'lockoutDurationTypeMetadata', 'minimum_password_age_days': 'minimumPasswordAgeDays', 'minimum_password_age_days_metadata': 'minimumPasswordAgeDaysMetadata', 'minimum_password_length': 'minimumPasswordLength', 'minimum_password_length_metadata': 'minimumPasswordLengthMetadata', 'password_include_digit': 'passwordIncludeDigit', 'password_include_digit_or_special_character': 'passwordIncludeDigitOrSpecialCharacter', 'password_include_lower_case': 'passwordIncludeLowerCase', 'password_include_special_character': 'passwordIncludeSpecialCharacter', 'password_include_upper_case': 'passwordIncludeUpperCase', 'password_strength_type': 'passwordStrengthType', 'password_strength_type_metadata': 'passwordStrengthTypeMetadata', 'questions_required': 'questionsRequired', 'questions_required_metadata': 'questionsRequiredMetadata'}
expire_password

Gets the expire_password of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The expire_password of this AccountPasswordRules. # noqa: E501

expire_password_days

Gets the expire_password_days of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The expire_password_days of this AccountPasswordRules. # noqa: E501

expire_password_days_metadata

Gets the expire_password_days_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the expirePasswordDays property is editable. # noqa: E501

Returns

The expire_password_days_metadata of this AccountPasswordRules. # noqa: E501

lockout_duration_minutes

Gets the lockout_duration_minutes of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The lockout_duration_minutes of this AccountPasswordRules. # noqa: E501

lockout_duration_minutes_metadata

Gets the lockout_duration_minutes_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the lockoutDurationMinutes property is editable. # noqa: E501

Returns

The lockout_duration_minutes_metadata of this AccountPasswordRules. # noqa: E501

lockout_duration_type

Gets the lockout_duration_type of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The lockout_duration_type of this AccountPasswordRules. # noqa: E501

lockout_duration_type_metadata

Gets the lockout_duration_type_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the lockoutDurationType property is editable. # noqa: E501

Returns

The lockout_duration_type_metadata of this AccountPasswordRules. # noqa: E501

minimum_password_age_days

Gets the minimum_password_age_days of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The minimum_password_age_days of this AccountPasswordRules. # noqa: E501

minimum_password_age_days_metadata

Gets the minimum_password_age_days_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the minimumPasswordAgeDays property is editable. # noqa: E501

Returns

The minimum_password_age_days_metadata of this AccountPasswordRules. # noqa: E501

minimum_password_length

Gets the minimum_password_length of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The minimum_password_length of this AccountPasswordRules. # noqa: E501

minimum_password_length_metadata

Gets the minimum_password_length_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the minimumPasswordLength property is editable. # noqa: E501

Returns

The minimum_password_length_metadata of this AccountPasswordRules. # noqa: E501

password_include_digit

Gets the password_include_digit of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_include_digit of this AccountPasswordRules. # noqa: E501

password_include_digit_or_special_character

Gets the password_include_digit_or_special_character of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_include_digit_or_special_character of this AccountPasswordRules. # noqa: E501

password_include_lower_case

Gets the password_include_lower_case of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_include_lower_case of this AccountPasswordRules. # noqa: E501

password_include_special_character

Gets the password_include_special_character of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_include_special_character of this AccountPasswordRules. # noqa: E501

password_include_upper_case

Gets the password_include_upper_case of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_include_upper_case of this AccountPasswordRules. # noqa: E501

password_strength_type

Gets the password_strength_type of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The password_strength_type of this AccountPasswordRules. # noqa: E501

password_strength_type_metadata

Gets the password_strength_type_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the passwordStrengthType property is editable. # noqa: E501

Returns

The password_strength_type_metadata of this AccountPasswordRules. # noqa: E501

questions_required

Gets the questions_required of this AccountPasswordRules. # noqa: E501

# noqa: E501

Returns

The questions_required of this AccountPasswordRules. # noqa: E501

questions_required_metadata

Gets the questions_required_metadata of this AccountPasswordRules. # noqa: E501

Metadata that indicates whether the questionsRequired property is editable. # noqa: E501

Returns

The questions_required_metadata of this AccountPasswordRules. # noqa: E501

def to_dict(self)
591    def to_dict(self):
592        """Returns the model properties as a dict"""
593        result = {}
594
595        for attr, _ in six.iteritems(self.swagger_types):
596            value = getattr(self, attr)
597            if isinstance(value, list):
598                result[attr] = list(map(
599                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
600                    value
601                ))
602            elif hasattr(value, "to_dict"):
603                result[attr] = value.to_dict()
604            elif isinstance(value, dict):
605                result[attr] = dict(map(
606                    lambda item: (item[0], item[1].to_dict())
607                    if hasattr(item[1], "to_dict") else item,
608                    value.items()
609                ))
610            else:
611                result[attr] = value
612        if issubclass(AccountPasswordRules, dict):
613            for key, value in self.items():
614                result[key] = value
615
616        return result

Returns the model properties as a dict

def to_str(self)
618    def to_str(self):
619        """Returns the string representation of the model"""
620        return pprint.pformat(self.to_dict())

Returns the string representation of the model