Class: Softlayer::Virtual::Guest::Block::Device::Template::Group
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_contact_count ⇒ Object
Returns the value of attribute account_contact_count.
-
#account_contacts ⇒ Object
Returns the value of attribute account_contacts.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#account_reference_count ⇒ Object
Returns the value of attribute account_reference_count.
-
#account_references ⇒ Object
Returns the value of attribute account_references.
-
#block_device_count ⇒ Object
Returns the value of attribute block_device_count.
-
#block_devices ⇒ Object
Returns the value of attribute block_devices.
-
#block_devices_disk_space_total ⇒ Object
Returns the value of attribute block_devices_disk_space_total.
-
#children ⇒ Object
Returns the value of attribute children.
-
#children_count ⇒ Object
Returns the value of attribute children_count.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#datacenter_count ⇒ Object
Returns the value of attribute datacenter_count.
-
#datacenters ⇒ Object
Returns the value of attribute datacenters.
-
#flex_image_flag ⇒ Object
Returns the value of attribute flex_image_flag.
-
#global_identifier ⇒ Object
Returns the value of attribute global_identifier.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image_type ⇒ Object
Returns the value of attribute image_type.
-
#image_type_key_name ⇒ Object
Returns the value of attribute image_type_key_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note ⇒ Object
Returns the value of attribute note.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#public_flag ⇒ Object
Returns the value of attribute public_flag.
-
#ssh_key_count ⇒ Object
Returns the value of attribute ssh_key_count.
-
#ssh_keys ⇒ Object
Returns the value of attribute ssh_keys.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
-
#storage_repository ⇒ Object
Returns the value of attribute storage_repository.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tag_reference_count ⇒ Object
Returns the value of attribute tag_reference_count.
-
#tag_references ⇒ Object
Returns the value of attribute tag_references.
-
#transaction ⇒ Object
Returns the value of attribute transaction.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
-
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
Class Method Summary collapse
- .create_from_external_source(configuration = nil) ⇒ Object
- .get_public_customer_owned_images ⇒ Object
- .get_public_images ⇒ Object
- .get_vhd_import_software_descriptions ⇒ Object
Instance Method Summary collapse
- #add_locations(locations = nil) ⇒ Object
- #copy_to_external_source(configuration = nil) ⇒ Object
- #create_public_archive_transaction(group_name = nil, summary = nil, note = nil, locations = nil) ⇒ Object
- #delete_object ⇒ Object
- #deny_sharing_access(account_id = nil) ⇒ Object
- #edit_object(template_object = nil) ⇒ Object
- #get_account ⇒ Object
- #get_account_contacts ⇒ Object
- #get_account_references ⇒ Object
- #get_block_devices ⇒ Object
- #get_block_devices_disk_space_total ⇒ Object
- #get_children ⇒ Object
- #get_datacenter ⇒ Object
- #get_datacenters ⇒ Object
- #get_flex_image_flag ⇒ Object
- #get_global_identifier ⇒ Object
- #get_image_type ⇒ Object
- #get_image_type_key_name ⇒ Object
- #get_object ⇒ Object
- #get_parent ⇒ Object
- #get_ssh_keys ⇒ Object
- #get_status ⇒ Object
- #get_storage_locations ⇒ Object
- #get_storage_repository ⇒ Object
- #get_tag_references ⇒ Object
- #get_transaction ⇒ Object
- #permit_sharing_access(account_id = nil) ⇒ Object
- #remove_locations(locations = nil) ⇒ Object
- #set_available_locations(locations = nil) ⇒ Object
- #set_tags(tags = nil) ⇒ Object
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
#account ⇒ Object
Returns the value of attribute account.
29 30 31 |
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 29 def account @account end |
#account_contact_count ⇒ Object
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 @account_contact_count end |
#account_contacts ⇒ Object
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 @account_contacts end |
#account_id ⇒ Object
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 @account_id end |
#account_reference_count ⇒ Object
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 @account_reference_count end |
#account_references ⇒ Object
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 @account_references end |
#block_device_count ⇒ Object
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_devices ⇒ Object
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_total ⇒ Object
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 |
#children ⇒ Object
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_count ⇒ Object
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_date ⇒ Object
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 |
#datacenter ⇒ Object
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_count ⇒ Object
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 |
#datacenters ⇒ Object
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_flag ⇒ Object
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_identifier ⇒ Object
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 |
#id ⇒ Object
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_type ⇒ Object
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_name ⇒ Object
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 |
#name ⇒ Object
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 |
#note ⇒ Object
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 |
#parent ⇒ Object
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_id ⇒ Object
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_flag ⇒ Object
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_count ⇒ Object
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_keys ⇒ Object
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 |
#status ⇒ Object
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_id ⇒ Object
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_repository ⇒ Object
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 |
#summary ⇒ Object
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_count ⇒ Object
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_references ⇒ Object
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 |
#transaction ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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) = {configuration: configuration} request(:create_from_external_source, Softlayer::Virtual::Guest::Block::Device::Template::Group, ) end |
.get_public_customer_owned_images ⇒ Object
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_images ⇒ Object
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_descriptions ⇒ Object
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) = {locations: locations} request(:add_locations, Boolean, ) 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) = {configuration: configuration} request(:copy_to_external_source, Boolean, ) 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) = {group_name: group_name, summary: summary, note: note, locations: locations} request(:create_public_archive_transaction, Integer, ) end |
#delete_object ⇒ Object
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(account_id = nil) = {account_id: account_id} request(:deny_sharing_access, Boolean, ) 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) = {template_object: template_object} request(:edit_object, Boolean, ) end |
#get_account ⇒ Object
82 83 84 |
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 82 def get_account request(:get_account, Softlayer::Account) end |
#get_account_contacts ⇒ Object
86 87 88 |
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 86 def get_account_contacts request(:get_account_contacts, Array[Softlayer::Account::Contact]) end |
#get_account_references ⇒ Object
90 91 92 |
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 90 def get_account_references request(:get_account_references, Array[Softlayer::Virtual::Guest::Block::Device::Template::Group::Accounts]) end |
#get_block_devices ⇒ Object
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_total ⇒ Object
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_children ⇒ Object
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_datacenter ⇒ Object
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_datacenters ⇒ Object
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_flag ⇒ Object
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_identifier ⇒ Object
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_type ⇒ Object
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_name ⇒ Object
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_object ⇒ Object
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_parent ⇒ Object
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_keys ⇒ Object
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_status ⇒ Object
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_locations ⇒ Object
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_repository ⇒ Object
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_references ⇒ Object
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_transaction ⇒ Object
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(account_id = nil) = {account_id: account_id} request(:permit_sharing_access, Boolean, ) 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) = {locations: locations} request(:remove_locations, Boolean, ) 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) = {locations: locations} request(:set_available_locations, Boolean, ) end |
#set_tags(tags = nil) ⇒ Object
189 190 191 192 |
# File 'lib/softlayer/virtual/guest/block/device/template/group.rb', line 189 def ( = nil) = {tags: } request(:set_tags, Boolean, ) end |