Class: SDM::Sybase
- Inherits:
-
Object
- Object
- SDM::Sybase
- 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) ⇒ Sybase
constructor
A new instance of Sybase.
- #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) ⇒ Sybase
Returns a new instance of Sybase.
7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 |
# File 'lib/models/porcelain.rb', line 7280 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.
7258 7259 7260 |
# File 'lib/models/porcelain.rb', line 7258 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
7260 7261 7262 |
# File 'lib/models/porcelain.rb', line 7260 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
7262 7263 7264 |
# File 'lib/models/porcelain.rb', line 7262 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
7264 7265 7266 |
# File 'lib/models/porcelain.rb', line 7264 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
7266 7267 7268 |
# File 'lib/models/porcelain.rb', line 7266 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
7268 7269 7270 |
# File 'lib/models/porcelain.rb', line 7268 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
7270 7271 7272 |
# File 'lib/models/porcelain.rb', line 7270 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
7272 7273 7274 |
# File 'lib/models/porcelain.rb', line 7272 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
7274 7275 7276 |
# File 'lib/models/porcelain.rb', line 7274 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
7276 7277 7278 |
# File 'lib/models/porcelain.rb', line 7276 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
7278 7279 7280 |
# File 'lib/models/porcelain.rb', line 7278 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7328 7329 7330 7331 7332 7333 7334 |
# File 'lib/models/porcelain.rb', line 7328 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 |