Class: Softlayer::Network::Storage::Allowed::Host::Hardware
Defined Under Namespace
Classes: Representer
Constant Summary
collapse
- SERVICE =
'SoftLayer_Network_Storage_Allowed_Host_Hardware'
Instance Attribute Summary collapse
#assigned_group_count, #assigned_groups, #assigned_replication_volume_count, #assigned_replication_volumes, #assigned_volume_count, #assigned_volumes, #credential, #credential_id, #id, #name, #resource_table_id, #resource_table_name
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, #service_name, #to_hash
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#resource ⇒ Object
Returns the value of attribute resource.
8
9
10
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 8
def resource
@resource
end
|
Class Method Details
.create_object(template_object = nil) ⇒ Object
10
11
12
13
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 10
def self.create_object(template_object = nil)
message = {template_object: template_object}
request(:create_object, Boolean, message)
end
|
Instance Method Details
#delete_object ⇒ Object
15
16
17
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 15
def delete_object
request(:delete_object, Boolean)
end
|
#edit_object(template_object = nil) ⇒ Object
19
20
21
22
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 19
def edit_object(template_object = nil)
message = {template_object: template_object}
request(:edit_object, Boolean, message)
end
|
#get_assigned_groups ⇒ Object
24
25
26
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 24
def get_assigned_groups
request(:get_assigned_groups, Array[Softlayer::Network::Storage::Group])
end
|
#get_assigned_replication_volumes ⇒ Object
28
29
30
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 28
def get_assigned_replication_volumes
request(:get_assigned_replication_volumes, Array[Softlayer::Network::Storage])
end
|
#get_assigned_volumes ⇒ Object
32
33
34
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 32
def get_assigned_volumes
request(:get_assigned_volumes, Array[Softlayer::Network::Storage])
end
|
#get_credential ⇒ Object
36
37
38
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 36
def get_credential
request(:get_credential, Softlayer::Network::Storage::Credential)
end
|
#get_resource ⇒ Object
44
45
46
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 44
def get_resource
request(:get_resource, Softlayer::Hardware)
end
|
#set_credential_password(password = nil) ⇒ Object
48
49
50
51
|
# File 'lib/softlayer/network/storage/allowed/host/hardware.rb', line 48
def set_credential_password(password = nil)
message = {password: password}
request(:set_credential_password, Boolean, message)
end
|