Class: Bmc::Sdk::SSHKeySpec
- Inherits:
-
Object
- Object
- Bmc::Sdk::SSHKeySpec
- Defined in:
- lib/dtos.rb
Overview
SSHKeySpec is used to transmit details for BMC SSH Key objects.
Instance Attribute Summary collapse
-
#createdOn ⇒ Object
Returns the value of attribute createdOn.
-
#default ⇒ Object
Returns the value of attribute default.
-
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
-
#id ⇒ Object
Returns the value of attribute id.
-
#key ⇒ Object
Returns the value of attribute key.
-
#lastUpdatedOn ⇒ Object
Returns the value of attribute lastUpdatedOn.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, default, name, key, fingerprint, createdOn, lastUpdatedOn) ⇒ SSHKeySpec
constructor
A new instance of SSHKeySpec.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(id, default, name, key, fingerprint, createdOn, lastUpdatedOn) ⇒ SSHKeySpec
Returns a new instance of SSHKeySpec.
98 99 100 101 102 103 104 105 106 |
# File 'lib/dtos.rb', line 98 def initialize(id, default, name, key, fingerprint, createdOn, lastUpdatedOn) @id = id @default = default @name = name @key = key @fingerprint = fingerprint @createdOn = createdOn @lastUpdatedOn = lastUpdatedOn end |
Instance Attribute Details
#createdOn ⇒ Object
Returns the value of attribute createdOn.
97 98 99 |
# File 'lib/dtos.rb', line 97 def createdOn @createdOn end |
#default ⇒ Object
Returns the value of attribute default.
97 98 99 |
# File 'lib/dtos.rb', line 97 def default @default end |
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
97 98 99 |
# File 'lib/dtos.rb', line 97 def fingerprint @fingerprint end |
#id ⇒ Object
Returns the value of attribute id.
97 98 99 |
# File 'lib/dtos.rb', line 97 def id @id end |
#key ⇒ Object
Returns the value of attribute key.
97 98 99 |
# File 'lib/dtos.rb', line 97 def key @key end |
#lastUpdatedOn ⇒ Object
Returns the value of attribute lastUpdatedOn.
97 98 99 |
# File 'lib/dtos.rb', line 97 def lastUpdatedOn @lastUpdatedOn end |
#name ⇒ Object
Returns the value of attribute name.
97 98 99 |
# File 'lib/dtos.rb', line 97 def name @name end |
Instance Method Details
#to_json(*a) ⇒ Object
107 108 109 |
# File 'lib/dtos.rb', line 107 def to_json(*a) {id: @id, default: @default, name: @name, key: @key, fingerprint: @fingerprint, createdOn: @createdOn, lastUpdatedOn: @lastUpdatedOn}.to_json(*a) end |