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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/rows_create.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/rows_create.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/rows_create.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/requests/rows_create.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ecloud/requests/compute/rows_create.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/requests/rows_create.rb
fog-ecloud-0.0.2 lib/fog/ecloud/requests/compute/rows_create.rb
fog-ecloud-0.0.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.25.0 lib/fog/ecloud/requests/compute/rows_create.rb
nsidc-fog-1.24.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.24.0 lib/fog/ecloud/requests/compute/rows_create.rb
ns-fog-1.22.11 lib/fog/ecloud/requests/compute/rows_create.rb
ns-fog-1.22.10 lib/fog/ecloud/requests/compute/rows_create.rb
ns-fog-1.22.9 lib/fog/ecloud/requests/compute/rows_create.rb
ns-fog-1.22.8 lib/fog/ecloud/requests/compute/rows_create.rb