Class: McServerArray

Inherits:
Object
  • Object
show all
Extended by:
RightScale::Api::GatewayExtend, RightScale::Api::McTaggableExtend
Includes:
RightScale::Api::Gateway, RightScale::Api::McTaggable
Defined in:
lib/rest_connection/rightscale/mc_server_array.rb

Overview

API 1.5

Instance Attribute Summary

Attributes included from RightScale::Api::Base

#params

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RightScale::Api::GatewayExtend

create, filters, find, find_all, find_by, find_with_filter, load, load_all, parse_args, resource_post_name

Methods included from RightScale::Api::GatewayConnection

#connection

Methods included from RightScale::Api::BaseExtend

#[], #create, #deny_methods, #filters, #find, #find_all, #find_by, #find_by_cloud_id, #find_by_id, #find_by_nickname, #find_by_nickname_speed, #find_with_filter

Methods included from RightScale::Api::BaseConnection

#connection

Methods included from RightScale::Api::McTaggableExtend

find_by_tags

Methods included from RightScale::Api::McTaggable

#add_tags, #remove_tags, #tags

Methods included from RightScale::Api::Taggable

#add_tags, #clear_tags, #get_info_tags, #get_tags_by_namespace, #remove_info_tags, #remove_tags, #remove_tags_by_namespace, #set_info_tags, #set_tags_by_namespace, #set_tags_to, #tags

Methods included from RightScale::Api::Gateway

#[], #[]=, #actions, #hash_of_links, #href, #initialize, #load, #method_missing, #nickname, #parse_params, #rediscover, #save

Methods included from RightScale::Api::Base

#[], #[]=, #destroy, #initialize, #method_missing, #reload, #rs_id, #save

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightScale::Api::Gateway

Class Method Details

.filtersObject



53
54
55
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 53

def self.filters
  [:deployment_href, :name]
end

.parse_args(deployment_id = nil) ⇒ Object



49
50
51
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 49

def self.parse_args(deployment_id=nil)
  (deployment_id ? "deployments/#{deployment_id}/" : "")
end

.resource_plural_nameObject



41
42
43
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 41

def self.resource_plural_name
  "server_arrays"
end

.resource_singular_nameObject



45
46
47
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 45

def self.resource_singular_name
  "server_array"
end

Instance Method Details

#resource_plural_nameObject



33
34
35
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 33

def resource_plural_name
  "server_arrays"
end

#resource_singular_nameObject



37
38
39
# File 'lib/rest_connection/rightscale/mc_server_array.rb', line 37

def resource_singular_name
  "server_array"
end