Class: Softlayer::Product::Package::Preset

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/product/package/preset.rb,
lib/softlayer/product/package/preset/attribute.rb,
lib/softlayer/product/package/preset/configuration.rb,
lib/softlayer/product/package/preset/attribute/type.rb

Defined Under Namespace

Classes: Attribute, Configuration, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Product_Package_Preset'

Instance Attribute 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

#available_storage_unitsObject

Returns the value of attribute available_storage_units.



19
20
21
# File 'lib/softlayer/product/package/preset.rb', line 19

def available_storage_units
  @available_storage_units
end

#categoriesObject

Returns the value of attribute categories.



20
21
22
# File 'lib/softlayer/product/package/preset.rb', line 20

def categories
  @categories
end

#category_countObject

Returns the value of attribute category_count.



14
15
16
# File 'lib/softlayer/product/package/preset.rb', line 14

def category_count
  @category_count
end

#configurationObject

Returns the value of attribute configuration.



21
22
23
# File 'lib/softlayer/product/package/preset.rb', line 21

def configuration
  @configuration
end

#configuration_countObject

Returns the value of attribute configuration_count.



15
16
17
# File 'lib/softlayer/product/package/preset.rb', line 15

def configuration_count
  @configuration_count
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/softlayer/product/package/preset.rb', line 8

def description
  @description
end

#fixed_configuration_flagObject

Returns the value of attribute fixed_configuration_flag.



22
23
24
# File 'lib/softlayer/product/package/preset.rb', line 22

def fixed_configuration_flag
  @fixed_configuration_flag
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/product/package/preset.rb', line 9

def id
  @id
end

#is_activeObject

Returns the value of attribute is_active.



10
11
12
# File 'lib/softlayer/product/package/preset.rb', line 10

def is_active
  @is_active
end

#key_nameObject

Returns the value of attribute key_name.



11
12
13
# File 'lib/softlayer/product/package/preset.rb', line 11

def key_name
  @key_name
end

#lowest_preset_server_priceObject

Returns the value of attribute lowest_preset_server_price.



23
24
25
# File 'lib/softlayer/product/package/preset.rb', line 23

def lowest_preset_server_price
  @lowest_preset_server_price
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/product/package/preset.rb', line 12

def name
  @name
end

#packageObject

Returns the value of attribute package.



24
25
26
# File 'lib/softlayer/product/package/preset.rb', line 24

def package
  @package
end

#package_configurationObject

Returns the value of attribute package_configuration.



25
26
27
# File 'lib/softlayer/product/package/preset.rb', line 25

def package_configuration
  @package_configuration
end

#package_configuration_countObject

Returns the value of attribute package_configuration_count.



16
17
18
# File 'lib/softlayer/product/package/preset.rb', line 16

def package_configuration_count
  @package_configuration_count
end

#package_idObject

Returns the value of attribute package_id.



13
14
15
# File 'lib/softlayer/product/package/preset.rb', line 13

def package_id
  @package_id
end

#price_countObject

Returns the value of attribute price_count.



17
18
19
# File 'lib/softlayer/product/package/preset.rb', line 17

def price_count
  @price_count
end

#pricesObject

Returns the value of attribute prices.



26
27
28
# File 'lib/softlayer/product/package/preset.rb', line 26

def prices
  @prices
end

#storage_group_template_array_countObject

Returns the value of attribute storage_group_template_array_count.



18
19
20
# File 'lib/softlayer/product/package/preset.rb', line 18

def storage_group_template_array_count
  @storage_group_template_array_count
end

#storage_group_template_arraysObject

Returns the value of attribute storage_group_template_arrays.



27
28
29
# File 'lib/softlayer/product/package/preset.rb', line 27

def storage_group_template_arrays
  @storage_group_template_arrays
end

#total_minimum_hourly_feeObject

Returns the value of attribute total_minimum_hourly_fee.



28
29
30
# File 'lib/softlayer/product/package/preset.rb', line 28

def total_minimum_hourly_fee
  @total_minimum_hourly_fee
end

#total_minimum_recurring_feeObject

Returns the value of attribute total_minimum_recurring_fee.



29
30
31
# File 'lib/softlayer/product/package/preset.rb', line 29

def total_minimum_recurring_fee
  @total_minimum_recurring_fee
end

Instance Method Details

#get_available_storage_unitsObject



31
32
33
# File 'lib/softlayer/product/package/preset.rb', line 31

def get_available_storage_units
  request(:get_available_storage_units, Integer)
end

#get_categoriesObject



35
36
37
# File 'lib/softlayer/product/package/preset.rb', line 35

def get_categories
  request(:get_categories, Array[Softlayer::Product::Item::Category])
end

#get_configurationObject



39
40
41
# File 'lib/softlayer/product/package/preset.rb', line 39

def get_configuration
  request(:get_configuration, Array[Softlayer::Product::Package::Preset::Configuration])
end

#get_fixed_configuration_flagObject



43
44
45
# File 'lib/softlayer/product/package/preset.rb', line 43

def get_fixed_configuration_flag
  request(:get_fixed_configuration_flag, Boolean)
end

#get_lowest_preset_server_priceObject



47
48
49
# File 'lib/softlayer/product/package/preset.rb', line 47

def get_lowest_preset_server_price
  request(:get_lowest_preset_server_price, Softlayer::Product::Item::Price)
end

#get_objectObject



51
52
53
# File 'lib/softlayer/product/package/preset.rb', line 51

def get_object
  request(:get_object, Softlayer::Product::Package::Preset)
end

#get_packageObject



55
56
57
# File 'lib/softlayer/product/package/preset.rb', line 55

def get_package
  request(:get_package, Softlayer::Product::Package)
end

#get_package_configurationObject



59
60
61
# File 'lib/softlayer/product/package/preset.rb', line 59

def get_package_configuration
  request(:get_package_configuration, Array[Softlayer::Product::Package::Order::Configuration])
end

#get_pricesObject



63
64
65
# File 'lib/softlayer/product/package/preset.rb', line 63

def get_prices
  request(:get_prices, Array[Softlayer::Product::Item::Price])
end

#get_storage_group_template_arraysObject



67
68
69
# File 'lib/softlayer/product/package/preset.rb', line 67

def get_storage_group_template_arrays
  request(:get_storage_group_template_arrays, Array[Softlayer::Configuration::Storage::Group::Template::Group])
end

#get_total_minimum_hourly_feeObject



71
72
73
# File 'lib/softlayer/product/package/preset.rb', line 71

def get_total_minimum_hourly_fee
  request(:get_total_minimum_hourly_fee, Float)
end

#get_total_minimum_recurring_feeObject



75
76
77
# File 'lib/softlayer/product/package/preset.rb', line 75

def get_total_minimum_recurring_fee
  request(:get_total_minimum_recurring_fee, Float)
end