Class: Softlayer::Location::Group::Regional
- Inherits:
-
Softlayer::Location::Group
- Object
- Model
- Entity
- Softlayer::Location::Group
- Softlayer::Location::Group::Regional
- Defined in:
- lib/softlayer/location/group/regional.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Location_Group_Regional'
Instance Attribute Summary collapse
-
#datacenter_count ⇒ Object
Returns the value of attribute datacenter_count.
-
#datacenters ⇒ Object
Returns the value of attribute datacenters.
-
#preferred_datacenter ⇒ Object
Returns the value of attribute preferred_datacenter.
Attributes inherited from Softlayer::Location::Group
#description, #id, #location_count, #location_group_type, #location_group_type_id, #locations, #name, #security_level_id
Class Method Summary collapse
Instance Method Summary collapse
- #get_datacenters ⇒ Object
- #get_location_group_type ⇒ Object
- #get_locations ⇒ Object
- #get_object ⇒ Object
- #get_preferred_datacenter ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#datacenter_count ⇒ Object
Returns the value of attribute datacenter_count.
6 7 8 |
# File 'lib/softlayer/location/group/regional.rb', line 6 def datacenter_count @datacenter_count end |
#datacenters ⇒ Object
Returns the value of attribute datacenters.
7 8 9 |
# File 'lib/softlayer/location/group/regional.rb', line 7 def datacenters @datacenters end |
#preferred_datacenter ⇒ Object
Returns the value of attribute preferred_datacenter.
8 9 10 |
# File 'lib/softlayer/location/group/regional.rb', line 8 def preferred_datacenter @preferred_datacenter end |
Class Method Details
Instance Method Details
#get_datacenters ⇒ Object
14 15 16 |
# File 'lib/softlayer/location/group/regional.rb', line 14 def get_datacenters request(:get_datacenters, Array[Softlayer::Location]) end |
#get_location_group_type ⇒ Object
18 19 20 |
# File 'lib/softlayer/location/group/regional.rb', line 18 def get_location_group_type request(:get_location_group_type, Softlayer::Location::Group::Type) end |
#get_locations ⇒ Object
22 23 24 |
# File 'lib/softlayer/location/group/regional.rb', line 22 def get_locations request(:get_locations, Array[Softlayer::Location]) end |
#get_object ⇒ Object
26 27 28 |
# File 'lib/softlayer/location/group/regional.rb', line 26 def get_object request(:get_object, Softlayer::Location::Group::Regional) end |
#get_preferred_datacenter ⇒ Object
30 31 32 |
# File 'lib/softlayer/location/group/regional.rb', line 30 def get_preferred_datacenter request(:get_preferred_datacenter, Softlayer::Location::Datacenter) end |