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.
95 96 97 98 99 100 101 102 103 |
# File 'lib/dtos.rb', line 95 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.
94 95 96 |
# File 'lib/dtos.rb', line 94 def createdOn @createdOn end |
#default ⇒ Object
Returns the value of attribute default.
94 95 96 |
# File 'lib/dtos.rb', line 94 def default @default end |
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
94 95 96 |
# File 'lib/dtos.rb', line 94 def fingerprint @fingerprint end |
#id ⇒ Object
Returns the value of attribute id.
94 95 96 |
# File 'lib/dtos.rb', line 94 def id @id end |
#key ⇒ Object
Returns the value of attribute key.
94 95 96 |
# File 'lib/dtos.rb', line 94 def key @key end |
#lastUpdatedOn ⇒ Object
Returns the value of attribute lastUpdatedOn.
94 95 96 |
# File 'lib/dtos.rb', line 94 def lastUpdatedOn @lastUpdatedOn end |
#name ⇒ Object
Returns the value of attribute name.
94 95 96 |
# File 'lib/dtos.rb', line 94 def name @name end |
Instance Method Details
#to_json(*a) ⇒ Object
104 105 106 |
# File 'lib/dtos.rb', line 104 def to_json(*a) {id: @id, default: @default, name: @name, key: @key, fingerprint: @fingerprint, createdOn: @createdOn, lastUpdatedOn: @lastUpdatedOn}.to_json(*a) end |