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-1.15.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
gapinc-fog-1.14.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.14.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.13.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
gapinc-fog-1.12.1.2 lib/fog/ecloud/models/compute/password_complexity_rule.rb
gapinc-fog-1.12.1.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
gapinc-fog-1.12.1a lib/fog/ecloud/models/compute/password_complexity_rule.rb
gapinc-fog-1.12.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.12.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.12.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
hpfog-0.0.20 lib/fog/ecloud/models/compute/password_complexity_rule.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/models/compute/password_complexity_rule.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-nirvanix-1.8.2 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.11.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.11.0 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-nirvanix-1.8.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-1.10.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb
fog-parser-fix-1.6.1 lib/fog/ecloud/models/compute/password_complexity_rule.rb