Class: Softlayer::Security::Ssh::Key

Inherits:
Entity show all
Defined in:
lib/softlayer/security/ssh/key.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Security_Ssh_Key'

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

#accountObject

Returns the value of attribute account.



15
16
17
# File 'lib/softlayer/security/ssh/key.rb', line 15

def 
  @account
end

#block_device_template_group_countObject

Returns the value of attribute block_device_template_group_count.



13
14
15
# File 'lib/softlayer/security/ssh/key.rb', line 13

def block_device_template_group_count
  @block_device_template_group_count
end

#block_device_template_groupsObject

Returns the value of attribute block_device_template_groups.



16
17
18
# File 'lib/softlayer/security/ssh/key.rb', line 16

def block_device_template_groups
  @block_device_template_groups
end

#create_dateObject

Returns the value of attribute create_date.



6
7
8
# File 'lib/softlayer/security/ssh/key.rb', line 6

def create_date
  @create_date
end

#fingerprintObject

Returns the value of attribute fingerprint.



7
8
9
# File 'lib/softlayer/security/ssh/key.rb', line 7

def fingerprint
  @fingerprint
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/security/ssh/key.rb', line 8

def id
  @id
end

#keyObject

Returns the value of attribute key.



9
10
11
# File 'lib/softlayer/security/ssh/key.rb', line 9

def key
  @key
end

#labelObject

Returns the value of attribute label.



10
11
12
# File 'lib/softlayer/security/ssh/key.rb', line 10

def label
  @label
end

#modify_dateObject

Returns the value of attribute modify_date.



11
12
13
# File 'lib/softlayer/security/ssh/key.rb', line 11

def modify_date
  @modify_date
end

#notesObject

Returns the value of attribute notes.



12
13
14
# File 'lib/softlayer/security/ssh/key.rb', line 12

def notes
  @notes
end

#software_password_countObject

Returns the value of attribute software_password_count.



14
15
16
# File 'lib/softlayer/security/ssh/key.rb', line 14

def software_password_count
  @software_password_count
end

#software_passwordsObject

Returns the value of attribute software_passwords.



17
18
19
# File 'lib/softlayer/security/ssh/key.rb', line 17

def software_passwords
  @software_passwords
end

Class Method Details

.create_object(message) ⇒ Object

template_object



20
21
22
# File 'lib/softlayer/security/ssh/key.rb', line 20

def self.create_object(message)
  request(:create_object, Softlayer::Security::Ssh::Key, message)
end

Instance Method Details

#delete_objectObject



24
25
26
# File 'lib/softlayer/security/ssh/key.rb', line 24

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



29
30
31
# File 'lib/softlayer/security/ssh/key.rb', line 29

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

#get_accountObject



33
34
35
# File 'lib/softlayer/security/ssh/key.rb', line 33

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

#get_block_device_template_groupsObject



37
38
39
# File 'lib/softlayer/security/ssh/key.rb', line 37

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

#get_objectObject



41
42
43
# File 'lib/softlayer/security/ssh/key.rb', line 41

def get_object
  request(:get_object, Softlayer::Security::Ssh::Key)
end

#get_software_passwordsObject



45
46
47
# File 'lib/softlayer/security/ssh/key.rb', line 45

def get_software_passwords
  request(:get_software_passwords, Array[Softlayer::Software::Component::Password])
end