Class: SDM::SSH
- Inherits:
-
Object
- Object
- SDM::SSH
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#allow_deprecated_key_exchanges ⇒ Object
Returns the value of attribute allow_deprecated_key_exchanges.
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_forwarding ⇒ Object
Returns the value of attribute port_forwarding.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(allow_deprecated_key_exchanges: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, port: nil, port_forwarding: nil, public_key: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ SSH
constructor
A new instance of SSH.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(allow_deprecated_key_exchanges: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, port: nil, port_forwarding: nil, public_key: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ SSH
Returns a new instance of SSH.
5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 |
# File 'lib/models/porcelain.rb', line 5159 def initialize( allow_deprecated_key_exchanges: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, port: nil, port_forwarding: nil, public_key: nil, secret_store_id: nil, tags: nil, username: nil ) @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges == nil ? false : allow_deprecated_key_exchanges @egress_filter = egress_filter == nil ? "" : egress_filter @healthy = healthy == nil ? false : healthy @hostname = hostname == nil ? "" : hostname @id = id == nil ? "" : id @name = name == nil ? "" : name @port = port == nil ? 0 : port @port_forwarding = port_forwarding == nil ? false : port_forwarding @public_key = public_key == nil ? "" : public_key @secret_store_id = secret_store_id == nil ? "" : secret_store_id @tags = == nil ? SDM::() : @username = username == nil ? "" : username end |
Instance Attribute Details
#allow_deprecated_key_exchanges ⇒ Object
Returns the value of attribute allow_deprecated_key_exchanges.
5135 5136 5137 |
# File 'lib/models/porcelain.rb', line 5135 def allow_deprecated_key_exchanges @allow_deprecated_key_exchanges end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
5137 5138 5139 |
# File 'lib/models/porcelain.rb', line 5137 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
5139 5140 5141 |
# File 'lib/models/porcelain.rb', line 5139 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
5141 5142 5143 |
# File 'lib/models/porcelain.rb', line 5141 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
5143 5144 5145 |
# File 'lib/models/porcelain.rb', line 5143 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
5145 5146 5147 |
# File 'lib/models/porcelain.rb', line 5145 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
5147 5148 5149 |
# File 'lib/models/porcelain.rb', line 5147 def port @port end |
#port_forwarding ⇒ Object
Returns the value of attribute port_forwarding.
5149 5150 5151 |
# File 'lib/models/porcelain.rb', line 5149 def port_forwarding @port_forwarding end |
#public_key ⇒ Object
Returns the value of attribute public_key.
5151 5152 5153 |
# File 'lib/models/porcelain.rb', line 5151 def public_key @public_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
5153 5154 5155 |
# File 'lib/models/porcelain.rb', line 5153 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5155 5156 5157 |
# File 'lib/models/porcelain.rb', line 5155 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
5157 5158 5159 |
# File 'lib/models/porcelain.rb', line 5157 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5187 5188 5189 5190 5191 5192 5193 |
# File 'lib/models/porcelain.rb', line 5187 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |