Class: Softlayer::Location::Group::Regional

Inherits:
Softlayer::Location::Group show all
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

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

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_countObject

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

#datacentersObject

Returns the value of attribute datacenters.



7
8
9
# File 'lib/softlayer/location/group/regional.rb', line 7

def datacenters
  @datacenters
end

#preferred_datacenterObject

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

.get_all_objectsObject



10
11
12
# File 'lib/softlayer/location/group/regional.rb', line 10

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Location::Group])
end

Instance Method Details

#get_datacentersObject



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_typeObject



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_locationsObject



22
23
24
# File 'lib/softlayer/location/group/regional.rb', line 22

def get_locations
  request(:get_locations, Array[Softlayer::Location])
end

#get_objectObject



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_datacenterObject



30
31
32
# File 'lib/softlayer/location/group/regional.rb', line 30

def get_preferred_datacenter
  request(:get_preferred_datacenter, Softlayer::Location::Datacenter)
end