Class: SDM::Druid
- Inherits:
-
Object
- Object
- SDM::Druid
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#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.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#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(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, username: nil, password: nil, port: nil) ⇒ Druid
constructor
A new instance of Druid.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, username: nil, password: nil, port: nil) ⇒ Druid
Returns a new instance of Druid.
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/models/porcelain.rb', line 1260 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, username: nil, password: nil, port: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id end if egress_filter != nil @egress_filter = egress_filter end if hostname != nil @hostname = hostname end if port_override != nil @port_override = port_override end if username != nil @username = username end if password != nil @password = password end if port != nil @port = port end end |
Instance Attribute Details
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1248 1249 1250 |
# File 'lib/models/porcelain.rb', line 1248 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1242 1243 1244 |
# File 'lib/models/porcelain.rb', line 1242 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1250 1251 1252 |
# File 'lib/models/porcelain.rb', line 1250 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1238 1239 1240 |
# File 'lib/models/porcelain.rb', line 1238 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1240 1241 1242 |
# File 'lib/models/porcelain.rb', line 1240 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1256 1257 1258 |
# File 'lib/models/porcelain.rb', line 1256 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1258 1259 1260 |
# File 'lib/models/porcelain.rb', line 1258 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1252 1253 1254 |
# File 'lib/models/porcelain.rb', line 1252 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1246 1247 1248 |
# File 'lib/models/porcelain.rb', line 1246 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1244 1245 1246 |
# File 'lib/models/porcelain.rb', line 1244 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1254 1255 1256 |
# File 'lib/models/porcelain.rb', line 1254 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1308 1309 1310 1311 1312 1313 1314 |
# File 'lib/models/porcelain.rb', line 1308 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 |