Class: SDM::RDP
- Inherits:
-
Object
- Object
- SDM::RDP
- 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(egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ RDP
constructor
A new instance of RDP.
- #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, username: nil) ⇒ RDP
Returns a new instance of RDP.
5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 |
# File 'lib/models/porcelain.rb', line 5521 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, username: nil ) 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 password != nil @password = password end if port != nil @port = port end if port_override != nil @port_override = port_override end if secret_store_id != nil @secret_store_id = secret_store_id end if != nil @tags = end if username != nil @username = username end end |
Instance Attribute Details
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
5499 5500 5501 |
# File 'lib/models/porcelain.rb', line 5499 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
5501 5502 5503 |
# File 'lib/models/porcelain.rb', line 5501 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
5503 5504 5505 |
# File 'lib/models/porcelain.rb', line 5503 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
5505 5506 5507 |
# File 'lib/models/porcelain.rb', line 5505 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
5507 5508 5509 |
# File 'lib/models/porcelain.rb', line 5507 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
5509 5510 5511 |
# File 'lib/models/porcelain.rb', line 5509 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
5511 5512 5513 |
# File 'lib/models/porcelain.rb', line 5511 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
5513 5514 5515 |
# File 'lib/models/porcelain.rb', line 5513 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
5515 5516 5517 |
# File 'lib/models/porcelain.rb', line 5515 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5517 5518 5519 |
# File 'lib/models/porcelain.rb', line 5517 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
5519 5520 5521 |
# File 'lib/models/porcelain.rb', line 5519 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5569 5570 5571 5572 5573 5574 5575 |
# File 'lib/models/porcelain.rb', line 5569 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 |