class McDatacenter

API 1.5

Public Class Methods

filters() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 53
def self.filters
  [:name, :resource_uid]
end
parse_args(cloud_id) click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 49
def self.parse_args(cloud_id)
  "clouds/#{cloud_id}/"
end
resource_plural_name() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 41
def self.resource_plural_name
  "datacenters"
end
resource_singular_name() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 45
def self.resource_singular_name
  "datacenter"
end

Public Instance Methods

resource_plural_name() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 33
def resource_plural_name
  "datacenters"
end
resource_singular_name() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 37
def resource_singular_name
  "datacenter"
end
save() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 62
def save
  inst_href = URI.parse(self.href)
  connection.put(inst_href.path, @params)
end
show() click to toggle source
# File lib/rest_connection/rightscale/mc_datacenter.rb, line 57
def show
  inst_href = URI.parse(self.href)
  @params.merge! connection.get(inst_href.path, 'view' => "full")
end