Sha256: ab7e32241f70b01a50ad02967cc3c9394c37b531d709adb20ed4a3c6ac3fe03d

Contents?: true

Size: 814 Bytes

Versions: 10

Compression:

Stored size: 814 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real
        def authentication_levels_edit(data)
          validate_data([:basic, :sha1, :sha256, :sha512], data)
          body = build_authentication_levels_edit(data)
          request(
            :expects => 202,
            :method => "PUT",
            :headers => {},
            :body => body,
            :uri => data[:uri],
            :parse => true
          )
        end

        private

        def build_authentication_levels_edit(data)
          xml = Builder::XmlMarkup.new
          xml.AuthenticationLevels do
            xml.BasicEnabled data[:basic]
            xml.SHA1Enabled data[:sha1]
            xml.SHA256Enabled data[:sha256]
            xml.SHA512Enabled data[:sha512]
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 8 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/requests/admin_edit_authentication_levels.rb