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.



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

#createdOnObject

Returns the value of attribute createdOn.



94
95
96
# File 'lib/dtos.rb', line 94

def createdOn
  @createdOn
end

#defaultObject

Returns the value of attribute default.



94
95
96
# File 'lib/dtos.rb', line 94

def default
  @default
end

#fingerprintObject

Returns the value of attribute fingerprint.



94
95
96
# File 'lib/dtos.rb', line 94

def fingerprint
  @fingerprint
end

#idObject

Returns the value of attribute id.



94
95
96
# File 'lib/dtos.rb', line 94

def id
  @id
end

#keyObject

Returns the value of attribute key.



94
95
96
# File 'lib/dtos.rb', line 94

def key
  @key
end

#lastUpdatedOnObject

Returns the value of attribute lastUpdatedOn.



94
95
96
# File 'lib/dtos.rb', line 94

def lastUpdatedOn
  @lastUpdatedOn
end

#nameObject

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