Class: Softlayer::Virtual::Guest::Block::Device::Template::Group

Inherits:
Model
  • Object
show all
Defined in:
lib/softlayer/virtual/guest/block/device/template/group.rb,
lib/softlayer/virtual/guest/block/device/template/group/status.rb,
lib/softlayer/virtual/guest/block/device/template/group/accounts.rb

Defined Under Namespace

Classes: Accounts, Representer, Status

Constant Summary collapse

SERVICE =
'SoftLayer_Virtual_Guest_Block_Device_Template_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, request, #request, service_name, #to_hash

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



29
30
31
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 29

def 
  @account
end

#account_contact_countObject

Returns the value of attribute account_contact_count.



22
23
24
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 22

def 
  @account_contact_count
end

#account_contactsObject

Returns the value of attribute account_contacts.



30
31
32
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 30

def 
  @account_contacts
end

#account_idObject

Returns the value of attribute account_id.



11
12
13
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 11

def 
  @account_id
end

#account_reference_countObject

Returns the value of attribute account_reference_count.



23
24
25
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 23

def 
  @account_reference_count
end

#account_referencesObject

Returns the value of attribute account_references.



31
32
33
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 31

def 
  @account_references
end

#block_device_countObject

Returns the value of attribute block_device_count.



24
25
26
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 24

def block_device_count
  @block_device_count
end

#block_devicesObject

Returns the value of attribute block_devices.



32
33
34
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 32

def block_devices
  @block_devices
end

#block_devices_disk_space_totalObject

Returns the value of attribute block_devices_disk_space_total.



33
34
35
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 33

def block_devices_disk_space_total
  @block_devices_disk_space_total
end

#childrenObject

Returns the value of attribute children.



34
35
36
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 34

def children
  @children
end

#children_countObject

Returns the value of attribute children_count.



25
26
27
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 25

def children_count
  @children_count
end

#create_dateObject

Returns the value of attribute create_date.



12
13
14
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 12

def create_date
  @create_date
end

#datacenterObject

Returns the value of attribute datacenter.



35
36
37
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 35

def datacenter
  @datacenter
end

#datacenter_countObject

Returns the value of attribute datacenter_count.



26
27
28
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 26

def datacenter_count
  @datacenter_count
end

#datacentersObject

Returns the value of attribute datacenters.



36
37
38
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 36

def datacenters
  @datacenters
end

#flex_image_flagObject

Returns the value of attribute flex_image_flag.



37
38
39
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 37

def flex_image_flag
  @flex_image_flag
end

#global_identifierObject

Returns the value of attribute global_identifier.



38
39
40
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 38

def global_identifier
  @global_identifier
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 13

def id
  @id
end

#image_typeObject

Returns the value of attribute image_type.



39
40
41
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 39

def image_type
  @image_type
end

#image_type_key_nameObject

Returns the value of attribute image_type_key_name.



40
41
42
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 40

def image_type_key_name
  @image_type_key_name
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 14

def name
  @name
end

#noteObject

Returns the value of attribute note.



15
16
17
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 15

def note
  @note
end

#parentObject

Returns the value of attribute parent.



41
42
43
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 41

def parent
  @parent
end

#parent_idObject

Returns the value of attribute parent_id.



16
17
18
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 16

def parent_id
  @parent_id
end

#public_flagObject

Returns the value of attribute public_flag.



17
18
19
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 17

def public_flag
  @public_flag
end

#ssh_key_countObject

Returns the value of attribute ssh_key_count.



27
28
29
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 27

def ssh_key_count
  @ssh_key_count
end

#ssh_keysObject

Returns the value of attribute ssh_keys.



42
43
44
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 42

def ssh_keys
  @ssh_keys
end

#statusObject

Returns the value of attribute status.



43
44
45
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 43

def status
  @status
end

#status_idObject

Returns the value of attribute status_id.



18
19
20
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 18

def status_id
  @status_id
end

#storage_repositoryObject

Returns the value of attribute storage_repository.



44
45
46
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 44

def storage_repository
  @storage_repository
end

#summaryObject

Returns the value of attribute summary.



19
20
21
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 19

def summary
  @summary
end

#tag_reference_countObject

Returns the value of attribute tag_reference_count.



28
29
30
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 28

def tag_reference_count
  @tag_reference_count
end

#tag_referencesObject

Returns the value of attribute tag_references.



45
46
47
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 45

def tag_references
  @tag_references
end

#transactionObject

Returns the value of attribute transaction.



46
47
48
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 46

def transaction
  @transaction
end

#transaction_idObject

Returns the value of attribute transaction_id.



20
21
22
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 20

def transaction_id
  @transaction_id
end

#user_record_idObject

Returns the value of attribute user_record_id.



21
22
23
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 21

def user_record_id
  @user_record_id
end

Class Method Details

.create_from_external_source(configuration = nil) ⇒ Object



58
59
60
61
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 58

def self.create_from_external_source(configuration = nil)
  message = {configuration: configuration}
  request(:create_from_external_source, Softlayer::Virtual::Guest::Block::Device::Template::Group, message)
end

.get_public_customer_owned_imagesObject



138
139
140
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 138

def self.get_public_customer_owned_images
  request(:get_public_customer_owned_images, Array[Softlayer::Virtual::Guest::Block::Device::Template::Group])
end

.get_public_imagesObject



142
143
144
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 142

def self.get_public_images
  request(:get_public_images, Array[Softlayer::Virtual::Guest::Block::Device::Template::Group])
end

.get_vhd_import_software_descriptionsObject



170
171
172
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 170

def self.get_vhd_import_software_descriptions
  request(:get_vhd_import_software_descriptions, Array[Softlayer::Software::Description])
end

Instance Method Details

#add_locations(locations = nil) ⇒ Object



48
49
50
51
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 48

def add_locations(locations = nil)
  message = {locations: locations}
  request(:add_locations, Boolean, message)
end

#copy_to_external_source(configuration = nil) ⇒ Object



53
54
55
56
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 53

def copy_to_external_source(configuration = nil)
  message = {configuration: configuration}
  request(:copy_to_external_source, Boolean, message)
end

#create_public_archive_transaction(group_name = nil, summary = nil, note = nil, locations = nil) ⇒ Object



63
64
65
66
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 63

def create_public_archive_transaction(group_name = nil, summary = nil, note = nil, locations = nil)
  message = {group_name: group_name, summary: summary, note: note, locations: locations}
  request(:create_public_archive_transaction, Integer, message)
end

#delete_objectObject



68
69
70
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 68

def delete_object
  request(:delete_object, Softlayer::Provisioning::Version1::Transaction)
end

#deny_sharing_access(account_id = nil) ⇒ Object



72
73
74
75
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 72

def deny_sharing_access( = nil)
  message = {account_id: }
  request(:deny_sharing_access, Boolean, message)
end

#edit_object(template_object = nil) ⇒ Object



77
78
79
80
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 77

def edit_object(template_object = nil)
  message = {template_object: template_object}
  request(:edit_object, Boolean, message)
end

#get_accountObject



82
83
84
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 82

def 
  request(:get_account, Softlayer::)
end

#get_account_contactsObject



86
87
88
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 86

def 
  request(:get_account_contacts, Array[Softlayer::::Contact])
end

#get_account_referencesObject



90
91
92
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 90

def 
  request(:get_account_references, Array[Softlayer::Virtual::Guest::Block::Device::Template::Group::Accounts])
end

#get_block_devicesObject



94
95
96
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 94

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

#get_block_devices_disk_space_totalObject



98
99
100
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 98

def get_block_devices_disk_space_total
  request(:get_block_devices_disk_space_total, Float)
end

#get_childrenObject



102
103
104
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 102

def get_children
  request(:get_children, Array[Softlayer::Virtual::Guest::Block::Device::Template::Group])
end

#get_datacenterObject



106
107
108
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 106

def get_datacenter
  request(:get_datacenter, Softlayer::Location)
end

#get_datacentersObject



110
111
112
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 110

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

#get_flex_image_flagObject



114
115
116
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 114

def get_flex_image_flag
  request(:get_flex_image_flag, Boolean)
end

#get_global_identifierObject



118
119
120
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 118

def get_global_identifier
  request(:get_global_identifier, String)
end

#get_image_typeObject



122
123
124
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 122

def get_image_type
  request(:get_image_type, String)
end

#get_image_type_key_nameObject



126
127
128
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 126

def get_image_type_key_name
  request(:get_image_type_key_name, String)
end

#get_objectObject



130
131
132
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 130

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

#get_parentObject



134
135
136
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 134

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

#get_ssh_keysObject



146
147
148
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 146

def get_ssh_keys
  request(:get_ssh_keys, Array[Softlayer::Security::Ssh::Key])
end

#get_statusObject



150
151
152
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 150

def get_status
  request(:get_status, Softlayer::Virtual::Guest::Block::Device::Template::Group::Status)
end

#get_storage_locationsObject



154
155
156
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 154

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

#get_storage_repositoryObject



158
159
160
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 158

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

#get_tag_referencesObject



162
163
164
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 162

def get_tag_references
  request(:get_tag_references, Array[Softlayer::Tag::Reference])
end

#get_transactionObject



166
167
168
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 166

def get_transaction
  request(:get_transaction, Softlayer::Provisioning::Version1::Transaction)
end

#permit_sharing_access(account_id = nil) ⇒ Object



174
175
176
177
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 174

def permit_sharing_access( = nil)
  message = {account_id: }
  request(:permit_sharing_access, Boolean, message)
end

#remove_locations(locations = nil) ⇒ Object



179
180
181
182
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 179

def remove_locations(locations = nil)
  message = {locations: locations}
  request(:remove_locations, Boolean, message)
end

#set_available_locations(locations = nil) ⇒ Object



184
185
186
187
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 184

def set_available_locations(locations = nil)
  message = {locations: locations}
  request(:set_available_locations, Boolean, message)
end

#set_tags(tags = nil) ⇒ Object



189
190
191
192
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 189

def set_tags(tags = nil)
  message = {tags: tags}
  request(:set_tags, Boolean, message)
end