Method: SDM::ManagedSecretPasswordPolicy#initialize

Defined in:
lib/models/porcelain.rb

#initialize(allow_repeat: nil, exclude_characters: nil, exclude_upper_case: nil, length: nil, num_digits: nil, num_symbols: nil) ⇒ ManagedSecretPasswordPolicy

Returns a new instance of ManagedSecretPasswordPolicy.



8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
# File 'lib/models/porcelain.rb', line 8537

def initialize(
  allow_repeat: nil,
  exclude_characters: nil,
  exclude_upper_case: nil,
  length: nil,
  num_digits: nil,
  num_symbols: nil
)
  @allow_repeat = allow_repeat == nil ? false : allow_repeat
  @exclude_characters = exclude_characters == nil ? "" : exclude_characters
  @exclude_upper_case = exclude_upper_case == nil ? false : exclude_upper_case
  @length = length == nil ? 0 : length
  @num_digits = num_digits == nil ? 0 : num_digits
  @num_symbols = num_symbols == nil ? 0 : num_symbols
end