class Fog::Compute::Ecloud::Row

Public Instance Methods

create_group(options = {}) click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 35
def create_group(options = {})
  options[:uri] = "/cloudapi/ecloud/layoutGroups/environments/#{environment_id}/action/createLayoutGroup"
  options[:row_name] = name
  options[:href] = href
  data = connection.groups_create(options).body
  group = Fog::Compute::Ecloud::Groups.new(:connection => connection, :href => data[:href])[0]
end
delete() click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 31
def delete
  connection.rows_delete(href).body
end
edit(options) click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 16
def edit(options)
  options[:uri] = href
  connection.rows_edit(options).body
end
environment_id() click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 43
def environment_id
  other_links[:Link][:href].scan(%r\d+/)[0]
end
groups() click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 12
def groups
  @groups = Fog::Compute::Ecloud::Groups.new(:connection => connection, :href => href)
end
id() click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 47
def id
  href.scan(%r\d+/)[0]
end
move_down(options) click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 26
def move_down(options)
  options[:uri] = href + "/action/movedown"
  connection.rows_movedown(options).body
end
move_up(options) click to toggle source
# File lib/fog/ecloud/models/compute/row.rb, line 21
def move_up(options)
  options[:uri] = href + "/action/moveup"
  connection.rows_moveup(options).body
end