    # File lib/fog/ecloud/requests/compute/admin_edit_password_complexity_rules.rb, line 6
            def password_complexity_rules_edit(data)
              validate_data([:rule_type], data)
              if data[:rule_type] == "Custom"
                raise ArgumentError.new("Required data missing: custom_rules") unless data[:custom_rules]
              end
              validate_data([:minimum_characters, :minimum_uppercase_characters, :minimum_lowercase_characters, :minimum_numeric_characters, :minimum_special_characters, :maximum_consecutive_characters_from_prior_passwords, :minimum_lifetime_restriction, :minimum_generations_before_reuse], data[:custom_rules])
              body = build_password_complexity_rules_edit(data)
              request(
                :expects => 202,
                :method => 'PUT',
                :headers => {},
                :body => body,
                :uri => data[:uri],
                :parse => true
              )
            end