Class: Softlayer::Location::Group

Inherits:
Entity show all
Defined in:
lib/softlayer/location/group.rb,
lib/softlayer/location/group/type.rb,
lib/softlayer/location/group/pricing.rb,
lib/softlayer/location/group/location.rb,
lib/softlayer/location/group/regional.rb,
lib/softlayer/location/group/location/cross_reference.rb

Direct Known Subclasses

Pricing, Regional

Defined Under Namespace

Modules: Location Classes: Pricing, Regional, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Location_Group'

Instance Attribute Summary collapse

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#location_countObject

Returns the value of attribute location_count.



14
15
16
# File 'lib/softlayer/location/group.rb', line 14

def location_count
  @location_count
end

#location_group_typeObject

Returns the value of attribute location_group_type.



15
16
17
# File 'lib/softlayer/location/group.rb', line 15

def location_group_type
  @location_group_type
end

#location_group_type_idObject

Returns the value of attribute location_group_type_id.



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

def location_group_type_id
  @location_group_type_id
end

#locationsObject

Returns the value of attribute locations.



16
17
18
# File 'lib/softlayer/location/group.rb', line 16

def locations
  @locations
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/location/group.rb', line 12

def name
  @name
end

#security_level_idObject

Returns the value of attribute security_level_id.



13
14
15
# File 'lib/softlayer/location/group.rb', line 13

def security_level_id
  @security_level_id
end

Class Method Details

.get_all_objectsObject



18
19
20
# File 'lib/softlayer/location/group.rb', line 18

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

Instance Method Details

#get_location_group_typeObject



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

def get_location_group_type
  request(:get_location_group_type, Softlayer::Location::Group::Type)
end

#get_locationsObject



26
27
28
# File 'lib/softlayer/location/group.rb', line 26

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

#get_objectObject



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

def get_object
  request(:get_object, Softlayer::Location::Group)
end