class Bmc::Sdk::SSHKeySpec

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

@see developers.phoenixnap.com/docs/bmc/1/types/SshKey

Attributes

createdOn[RW]
default[RW]
fingerprint[RW]
id[RW]
key[RW]
lastUpdatedOn[RW]
name[RW]

Public Class Methods

new(id, default, name, key, fingerprint, createdOn, lastUpdatedOn) click to toggle source
# 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

Public Instance Methods

to_json(*a) click to toggle source
# 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