Class: SDM::Redis
- Inherits:
-
Object
- Object
- SDM::Redis
- 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.
Instance Method Summary collapse
-
#initialize(egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil) ⇒ Redis
constructor
A new instance of Redis.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil) ⇒ Redis
Returns a new instance of Redis.
4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 |
# File 'lib/models/porcelain.rb', line 4434 def initialize( egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil ) @egress_filter = egress_filter == nil ? "" : egress_filter @healthy = healthy == nil ? false : healthy @hostname = hostname == nil ? "" : hostname @id = id == nil ? "" : id @name = name == nil ? "" : name @password = password == nil ? "" : password @port = port == nil ? 0 : port @port_override = port_override == nil ? 0 : port_override @secret_store_id = secret_store_id == nil ? "" : secret_store_id @tags = == nil ? SDM::() : end |
Instance Attribute Details
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
4414 4415 4416 |
# File 'lib/models/porcelain.rb', line 4414 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
4416 4417 4418 |
# File 'lib/models/porcelain.rb', line 4416 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
4418 4419 4420 |
# File 'lib/models/porcelain.rb', line 4418 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
4420 4421 4422 |
# File 'lib/models/porcelain.rb', line 4420 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
4422 4423 4424 |
# File 'lib/models/porcelain.rb', line 4422 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
4424 4425 4426 |
# File 'lib/models/porcelain.rb', line 4424 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
4426 4427 4428 |
# File 'lib/models/porcelain.rb', line 4426 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
4428 4429 4430 |
# File 'lib/models/porcelain.rb', line 4428 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
4430 4431 4432 |
# File 'lib/models/porcelain.rb', line 4430 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
4432 4433 4434 |
# File 'lib/models/porcelain.rb', line 4432 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4458 4459 4460 4461 4462 4463 4464 |
# File 'lib/models/porcelain.rb', line 4458 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 |