Class: Bmc::Sdk::SSHKeySpec

Inherits:
Object
  • Object
show all
Defined in:
lib/dtos.rb

Overview

SSHKeySpec is used to transmit details for BMC SSH Key objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, default, name, key, fingerprint, createdOn, lastUpdatedOn) ⇒ SSHKeySpec

Returns a new instance of SSHKeySpec.



93
94
95
96
97
98
99
100
101
# File 'lib/dtos.rb', line 93

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

#createdOnObject

Returns the value of attribute createdOn.



92
93
94
# File 'lib/dtos.rb', line 92

def createdOn
  @createdOn
end

#defaultObject

Returns the value of attribute default.



92
93
94
# File 'lib/dtos.rb', line 92

def default
  @default
end

#fingerprintObject

Returns the value of attribute fingerprint.



92
93
94
# File 'lib/dtos.rb', line 92

def fingerprint
  @fingerprint
end

#idObject

Returns the value of attribute id.



92
93
94
# File 'lib/dtos.rb', line 92

def id
  @id
end

#keyObject

Returns the value of attribute key.



92
93
94
# File 'lib/dtos.rb', line 92

def key
  @key
end

#lastUpdatedOnObject

Returns the value of attribute lastUpdatedOn.



92
93
94
# File 'lib/dtos.rb', line 92

def lastUpdatedOn
  @lastUpdatedOn
end

#nameObject

Returns the value of attribute name.



92
93
94
# File 'lib/dtos.rb', line 92

def name
  @name
end

Instance Method Details

#to_json(*a) ⇒ Object



102
103
104
# File 'lib/dtos.rb', line 102

def to_json(*a)
  {id: @id, default: @default, name: @name, key: @key, fingerprint: @fingerprint, createdOn: @createdOn, lastUpdatedOn: @lastUpdatedOn}.to_json(*a)
end