Class: Softlayer::Virtual::Disk::Image

Inherits:
Entity show all
Defined in:
lib/softlayer/virtual/disk/image.rb,
lib/softlayer/virtual/disk/image/type.rb,
lib/softlayer/virtual/disk/image/software.rb,
lib/softlayer/virtual/disk/image/software/password.rb

Defined Under Namespace

Classes: Representer, Software, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Virtual_Disk_Image'

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

#billing_itemObject

Returns the value of attribute billing_item.



23
24
25
# File 'lib/softlayer/virtual/disk/image.rb', line 23

def billing_item
  @billing_item
end

#block_device_countObject

Returns the value of attribute block_device_count.



20
21
22
# File 'lib/softlayer/virtual/disk/image.rb', line 20

def block_device_count
  @block_device_count
end

#block_devicesObject

Returns the value of attribute block_devices.



24
25
26
# File 'lib/softlayer/virtual/disk/image.rb', line 24

def block_devices
  @block_devices
end

#capacityObject

Returns the value of attribute capacity.



8
9
10
# File 'lib/softlayer/virtual/disk/image.rb', line 8

def capacity
  @capacity
end

#checksumObject

Returns the value of attribute checksum.



9
10
11
# File 'lib/softlayer/virtual/disk/image.rb', line 9

def checksum
  @checksum
end

#coalesced_disk_image_countObject

Returns the value of attribute coalesced_disk_image_count.



21
22
23
# File 'lib/softlayer/virtual/disk/image.rb', line 21

def coalesced_disk_image_count
  @coalesced_disk_image_count
end

#coalesced_disk_imagesObject

Returns the value of attribute coalesced_disk_images.



25
26
27
# File 'lib/softlayer/virtual/disk/image.rb', line 25

def coalesced_disk_images
  @coalesced_disk_images
end

#copy_on_write_flagObject

Returns the value of attribute copy_on_write_flag.



26
27
28
# File 'lib/softlayer/virtual/disk/image.rb', line 26

def copy_on_write_flag
  @copy_on_write_flag
end

#create_dateObject

Returns the value of attribute create_date.



10
11
12
# File 'lib/softlayer/virtual/disk/image.rb', line 10

def create_date
  @create_date
end

#descriptionObject

Returns the value of attribute description.



11
12
13
# File 'lib/softlayer/virtual/disk/image.rb', line 11

def description
  @description
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/softlayer/virtual/disk/image.rb', line 12

def id
  @id
end

#local_disk_flagObject

Returns the value of attribute local_disk_flag.



27
28
29
# File 'lib/softlayer/virtual/disk/image.rb', line 27

def local_disk_flag
  @local_disk_flag
end

#metadata_flagObject

Returns the value of attribute metadata_flag.



28
29
30
# File 'lib/softlayer/virtual/disk/image.rb', line 28

def 
  @metadata_flag
end

#modify_dateObject

Returns the value of attribute modify_date.



13
14
15
# File 'lib/softlayer/virtual/disk/image.rb', line 13

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/softlayer/virtual/disk/image.rb', line 14

def name
  @name
end

#parent_idObject

Returns the value of attribute parent_id.



15
16
17
# File 'lib/softlayer/virtual/disk/image.rb', line 15

def parent_id
  @parent_id
end

#software_reference_countObject

Returns the value of attribute software_reference_count.



22
23
24
# File 'lib/softlayer/virtual/disk/image.rb', line 22

def software_reference_count
  @software_reference_count
end

#software_referencesObject

Returns the value of attribute software_references.



29
30
31
# File 'lib/softlayer/virtual/disk/image.rb', line 29

def software_references
  @software_references
end

#source_disk_imageObject

Returns the value of attribute source_disk_image.



30
31
32
# File 'lib/softlayer/virtual/disk/image.rb', line 30

def source_disk_image
  @source_disk_image
end

#storage_repositoryObject

Returns the value of attribute storage_repository.



31
32
33
# File 'lib/softlayer/virtual/disk/image.rb', line 31

def storage_repository
  @storage_repository
end

#storage_repository_idObject

Returns the value of attribute storage_repository_id.



16
17
18
# File 'lib/softlayer/virtual/disk/image.rb', line 16

def storage_repository_id
  @storage_repository_id
end

#storage_repository_typeObject

Returns the value of attribute storage_repository_type.



32
33
34
# File 'lib/softlayer/virtual/disk/image.rb', line 32

def storage_repository_type
  @storage_repository_type
end

#template_block_deviceObject

Returns the value of attribute template_block_device.



33
34
35
# File 'lib/softlayer/virtual/disk/image.rb', line 33

def template_block_device
  @template_block_device
end

#typeObject

Returns the value of attribute type.



34
35
36
# File 'lib/softlayer/virtual/disk/image.rb', line 34

def type
  @type
end

#type_idObject

Returns the value of attribute type_id.



17
18
19
# File 'lib/softlayer/virtual/disk/image.rb', line 17

def type_id
  @type_id
end

#unitsObject

Returns the value of attribute units.



18
19
20
# File 'lib/softlayer/virtual/disk/image.rb', line 18

def units
  @units
end

#uuidObject

Returns the value of attribute uuid.



19
20
21
# File 'lib/softlayer/virtual/disk/image.rb', line 19

def uuid
  @uuid
end

Class Method Details

.get_public_iso_imagesObject



69
70
71
# File 'lib/softlayer/virtual/disk/image.rb', line 69

def self.get_public_iso_images
  request(:get_public_iso_images, Array[Softlayer::Virtual::Disk::Image])
end

Instance Method Details

#edit_object(message) ⇒ Object

template_object



37
38
39
# File 'lib/softlayer/virtual/disk/image.rb', line 37

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_billing_itemObject



41
42
43
# File 'lib/softlayer/virtual/disk/image.rb', line 41

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item::Virtual::Disk::Image)
end

#get_block_devicesObject



45
46
47
# File 'lib/softlayer/virtual/disk/image.rb', line 45

def get_block_devices
  request(:get_block_devices, Array[Softlayer::Virtual::Guest::Block::Device])
end

#get_coalesced_disk_imagesObject



49
50
51
# File 'lib/softlayer/virtual/disk/image.rb', line 49

def get_coalesced_disk_images
  request(:get_coalesced_disk_images, Array[Softlayer::Virtual::Disk::Image])
end

#get_copy_on_write_flagObject



53
54
55
# File 'lib/softlayer/virtual/disk/image.rb', line 53

def get_copy_on_write_flag
  request(:get_copy_on_write_flag, Boolean)
end

#get_local_disk_flagObject



57
58
59
# File 'lib/softlayer/virtual/disk/image.rb', line 57

def get_local_disk_flag
  request(:get_local_disk_flag, Boolean)
end

#get_metadata_flagObject



61
62
63
# File 'lib/softlayer/virtual/disk/image.rb', line 61

def 
  request(:get_metadata_flag, Boolean)
end

#get_objectObject



65
66
67
# File 'lib/softlayer/virtual/disk/image.rb', line 65

def get_object
  request(:get_object, Softlayer::Virtual::Disk::Image)
end

#get_software_referencesObject



73
74
75
# File 'lib/softlayer/virtual/disk/image.rb', line 73

def get_software_references
  request(:get_software_references, Array[Softlayer::Virtual::Disk::Image::Software])
end

#get_source_disk_imageObject



77
78
79
# File 'lib/softlayer/virtual/disk/image.rb', line 77

def get_source_disk_image
  request(:get_source_disk_image, Softlayer::Virtual::Disk::Image)
end

#get_storage_repositoryObject



81
82
83
# File 'lib/softlayer/virtual/disk/image.rb', line 81

def get_storage_repository
  request(:get_storage_repository, Softlayer::Virtual::Storage::Repository)
end

#get_storage_repository_typeObject



85
86
87
# File 'lib/softlayer/virtual/disk/image.rb', line 85

def get_storage_repository_type
  request(:get_storage_repository_type, Softlayer::Virtual::Storage::Repository::Type)
end

#get_template_block_deviceObject



89
90
91
# File 'lib/softlayer/virtual/disk/image.rb', line 89

def get_template_block_device
  request(:get_template_block_device, Softlayer::Virtual::Guest::Block::Device::Template)
end

#get_typeObject



93
94
95
# File 'lib/softlayer/virtual/disk/image.rb', line 93

def get_type
  request(:get_type, Softlayer::Virtual::Disk::Image::Type)
end