# 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
# File lib/fog/ecloud/models/compute/row.rb, line 31 def delete connection.rows_delete(href).body end
# File lib/fog/ecloud/models/compute/row.rb, line 16 def edit(options) options[:uri] = href connection.rows_edit(options).body end
# File lib/fog/ecloud/models/compute/row.rb, line 43 def environment_id other_links[:Link][:href].scan(%r\d+/)[0] end
# File lib/fog/ecloud/models/compute/row.rb, line 12 def groups @groups = Fog::Compute::Ecloud::Groups.new(:connection => connection, :href => href) end
# File lib/fog/ecloud/models/compute/row.rb, line 47 def id href.scan(%r\d+/)[0] end
# 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
# 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