Class: SDM::Teradata
- Inherits:
-
Object
- Object
- SDM::Teradata
- 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) ⇒ Teradata
constructor
A new instance of Teradata.
- #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) ⇒ Teradata
Returns a new instance of Teradata.
7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 |
# File 'lib/models/porcelain.rb', line 7468 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.
7446 7447 7448 |
# File 'lib/models/porcelain.rb', line 7446 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
7448 7449 7450 |
# File 'lib/models/porcelain.rb', line 7448 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
7450 7451 7452 |
# File 'lib/models/porcelain.rb', line 7450 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
7452 7453 7454 |
# File 'lib/models/porcelain.rb', line 7452 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
7454 7455 7456 |
# File 'lib/models/porcelain.rb', line 7454 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
7456 7457 7458 |
# File 'lib/models/porcelain.rb', line 7456 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
7458 7459 7460 |
# File 'lib/models/porcelain.rb', line 7458 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
7460 7461 7462 |
# File 'lib/models/porcelain.rb', line 7460 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
7462 7463 7464 |
# File 'lib/models/porcelain.rb', line 7462 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
7464 7465 7466 |
# File 'lib/models/porcelain.rb', line 7464 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
7466 7467 7468 |
# File 'lib/models/porcelain.rb', line 7466 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7516 7517 7518 7519 7520 7521 7522 |
# File 'lib/models/porcelain.rb', line 7516 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 |