Sha256: 8944e7b3db3a4667ddd7b4e5ccc323bf101ecacde5b8736abe4cbac8213a8ef0

Contents?: true

Size: 1.23 KB

Versions: 77

Compression:

Stored size: 1.23 KB

Contents

module Fog
  module Compute
    class Ecloud
      class PasswordComplexityRule < Fog::Ecloud::Model
        identity :href

        attribute :rule_type, :aliases => :RuleType
        attribute :custom_rules, :aliases => :CustomRules
        attribute :description, :aliases => :Description

        def minimum_characters
          custom_rules[:MinimumCharacters]
        end

        def minimum_upper_case_characters
          custom_rules[:MinimumUpperCaseCharacters]
        end

        def minimum_lower_case_characters
          custom_rules[:MinimumLowerCaseCharacters]
        end

        def minimum_numeric_characters
          custom_rules[:MinimumNumericCharacters]
        end

        def minimum_special_characters
          custom_rules[:MinimumSpecialCharacters]
        end

        def maximum_consecutive_characters_from_prior_password
          custom_rules[:MaximumConsecutiveCharactersFromPriorPassword]
        end

        def minimum_lifetime_restriction
          custom_rules[:MinimumLifetimeRestriction]
        end

        def minimum_generations_before_reuse
          custom_rules[:MinimumGenerationsBeforeReuse]
        end
        
        def id
          href.scan(/\d+/)[0]
        end
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 12 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.20.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.19.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/ecloud/models/compute/password_complexity_rule.rb