class SDM::SSHCert

Attributes

allow_deprecated_key_exchanges[RW]
healthy[RW]

True if the datasource is reachable and the credentials are valid.

hostname[RW]
id[RW]

Unique identifier of the Resource.

name[RW]

Unique human-readable name of the Resource.

port[RW]
port_forwarding[RW]
tags[RW]

Tags is a map of key, value pairs.

username[RW]

Public Class Methods

new( id:nil \ , name:nil \ , healthy:nil \ , tags:nil \ , hostname:nil \ , username:nil \ , port:nil \ , port_forwarding:nil \ , allow_deprecated_key_exchanges:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 4246
                def initialize(
                        id:nil \
,
                        name:nil \
,
                        healthy:nil \
,
                        tags:nil \
,
                        hostname:nil \
,
                        username:nil \
,
                        port:nil \
,
                        port_forwarding:nil \
,
                        allow_deprecated_key_exchanges:nil \
                )
                        if id != nil
                                @id = id
                        end
                        if name != nil
                                @name = name
                        end
                        if healthy != nil
                                @healthy = healthy
                        end
                        if tags != nil
                                @tags = tags
                        end
                        if hostname != nil
                                @hostname = hostname
                        end
                        if username != nil
                                @username = username
                        end
                        if port != nil
                                @port = port
                        end
                        if port_forwarding != nil
                                @port_forwarding = port_forwarding
                        end
                        if allow_deprecated_key_exchanges != nil
                                @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
                        end
                end

Public Instance Methods

to_json(options={}) click to toggle source
# File lib/models/porcelain.rb, line 4293
def to_json(options={})
        hash = {}
        self.instance_variables.each do |var|
            hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var
        end
        hash.to_json
end