Class: Softlayer::Hardware::Component::Partition::Template

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/hardware/component/partition/template.rb,
lib/softlayer/hardware/component/partition/template/partition.rb

Defined Under Namespace

Classes: Partition, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Hardware_Component_Partition_Template'

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

#accountObject

Returns the value of attribute account.



16
17
18
# File 'lib/softlayer/hardware/component/partition/template.rb', line 16

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



8
9
10
# File 'lib/softlayer/hardware/component/partition/template.rb', line 8

def 
  @account_id
end

#dataObject

Returns the value of attribute data.



17
18
19
# File 'lib/softlayer/hardware/component/partition/template.rb', line 17

def data
  @data
end

#data_countObject

Returns the value of attribute data_count.



14
15
16
# File 'lib/softlayer/hardware/component/partition/template.rb', line 14

def data_count
  @data_count
end

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'lib/softlayer/hardware/component/partition/template.rb', line 9

def description
  @description
end

#expire_dateObject

Returns the value of attribute expire_date.



18
19
20
# File 'lib/softlayer/hardware/component/partition/template.rb', line 18

def expire_date
  @expire_date
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/hardware/component/partition/template.rb', line 10

def id
  @id
end

#partition_operating_systemObject

Returns the value of attribute partition_operating_system.



19
20
21
# File 'lib/softlayer/hardware/component/partition/template.rb', line 19

def partition_operating_system
  @partition_operating_system
end

#partition_operating_system_idObject

Returns the value of attribute partition_operating_system_id.



11
12
13
# File 'lib/softlayer/hardware/component/partition/template.rb', line 11

def partition_operating_system_id
  @partition_operating_system_id
end

#partition_template_partitionObject

Returns the value of attribute partition_template_partition.



20
21
22
# File 'lib/softlayer/hardware/component/partition/template.rb', line 20

def partition_template_partition
  @partition_template_partition
end

#partition_template_partition_countObject

Returns the value of attribute partition_template_partition_count.



15
16
17
# File 'lib/softlayer/hardware/component/partition/template.rb', line 15

def partition_template_partition_count
  @partition_template_partition_count
end

#status_codeObject

Returns the value of attribute status_code.



12
13
14
# File 'lib/softlayer/hardware/component/partition/template.rb', line 12

def status_code
  @status_code
end

#template_typeObject

Returns the value of attribute template_type.



13
14
15
# File 'lib/softlayer/hardware/component/partition/template.rb', line 13

def template_type
  @template_type
end

Instance Method Details

#get_accountObject



22
23
24
# File 'lib/softlayer/hardware/component/partition/template.rb', line 22

def 
  request(:get_account, Softlayer::Account)
end

#get_dataObject



26
27
28
# File 'lib/softlayer/hardware/component/partition/template.rb', line 26

def get_data
  request(:get_data, Array[Softlayer::Hardware::Component::Partition::Template::Partition])
end

#get_expire_dateObject



30
31
32
# File 'lib/softlayer/hardware/component/partition/template.rb', line 30

def get_expire_date
  request(:get_expire_date, String)
end

#get_objectObject



34
35
36
# File 'lib/softlayer/hardware/component/partition/template.rb', line 34

def get_object
  request(:get_object, Softlayer::Hardware::Component::Partition::Template)
end

#get_partition_operating_systemObject



38
39
40
# File 'lib/softlayer/hardware/component/partition/template.rb', line 38

def get_partition_operating_system
  request(:get_partition_operating_system, Softlayer::Hardware::Component::Partition::OperatingSystem)
end

#get_partition_template_partitionObject



42
43
44
# File 'lib/softlayer/hardware/component/partition/template.rb', line 42

def get_partition_template_partition
  request(:get_partition_template_partition, Array[Softlayer::Hardware::Component::Partition::Template::Partition])
end