class SDM::SSHCustomerKey

Attributes

allow_deprecated_key_exchanges[RW]
egress_filter[RW]

A filter applied to the routing logic to pin datasource to nodes.

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]
private_key[RW]
secret_store_id[RW]

ID of the secret store containing credentials for this resource, if any.

tags[RW]

Tags is a map of key, value pairs.

username[RW]

Public Class Methods

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

Public Instance Methods

to_json(options={}) click to toggle source
# File lib/models/porcelain.rb, line 7480
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