class McVolume

API 1.5

Public Class Methods

filters() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 55
def self.filters
  [:datacenter_href, :description, :name, :parent_volume_snapshot_href, :resource_uid]
end
parse_args(cloud_id) click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 51
def self.parse_args(cloud_id)
  "clouds/#{cloud_id}/"
end
resource_plural_name() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 43
def self.resource_plural_name
  "volumes"
end
resource_singular_name() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 47
def self.resource_singular_name
  "volume"
end

Public Instance Methods

attachment() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 64
def attachment
  connection.get(self.current_volume_attachment)
end
resource_plural_name() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 35
def resource_plural_name
  "volumes"
end
resource_singular_name() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 39
def resource_singular_name
  "volume"
end
show() click to toggle source
# File lib/rest_connection/rightscale/mc_volume.rb, line 59
def show
  inst_href = URI.parse(self.href)
  @params.merge! connection.get(inst_href.path, 'view' => 'extended')
end