Sha256: 6d67f861ec024676fdbf159286a2f67a1903e3a80a410beced7685d2ae36e973

Contents?: true

Size: 599 Bytes

Versions: 106

Compression:

Stored size: 599 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real
        include Shared

        def rows_create(data)
          validate_data([:name], data)

          request(
            :body => generate_rows_create_request(data),
            :expects => 201,
            :method => "POST",
            :headers => {},
            :uri => data[:uri],
            :parse => true
          )
        end

        private

        def generate_rows_create_request(data)
          xml = Builder::XmlMarkup.new
          xml.CreateLayoutRow(:name => data[:name])
        end
      end
    end
  end
end

Version data entries

106 entries across 104 versions & 17 rubygems

Version Path
hpfog-0.0.20 lib/fog/ecloud/requests/compute/rows_create.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/requests/compute/rows_create.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/requests/compute/rows_create.rb
fog-nirvanix-1.8.2 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.11.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.11.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-nirvanix-1.8.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.10.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-parser-fix-1.6.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-test-again-1.6.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-test-me-1.10.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-parser-fix-1.6.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.10.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.9.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/ecloud/requests/compute/rows_create.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/ecloud/requests/compute/rows_create.rb
fog-sgonyea-1.8.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.8.0 lib/fog/ecloud/requests/compute/rows_create.rb