Class: SDM::AuroraMysql
- Inherits:
-
Object
- Object
- SDM::AuroraMysql
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#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(database: nil, 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) ⇒ AuroraMysql
constructor
A new instance of AuroraMysql.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(database: nil, 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) ⇒ AuroraMysql
Returns a new instance of AuroraMysql.
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/models/porcelain.rb', line 1109 def initialize( database: nil, 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 ) @database = database == nil ? "" : database @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::() : @username = username == nil ? "" : username end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
1085 1086 1087 |
# File 'lib/models/porcelain.rb', line 1085 def database @database end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1087 1088 1089 |
# File 'lib/models/porcelain.rb', line 1087 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1089 1090 1091 |
# File 'lib/models/porcelain.rb', line 1089 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1091 1092 1093 |
# File 'lib/models/porcelain.rb', line 1091 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1093 1094 1095 |
# File 'lib/models/porcelain.rb', line 1093 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1095 1096 1097 |
# File 'lib/models/porcelain.rb', line 1095 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1097 1098 1099 |
# File 'lib/models/porcelain.rb', line 1097 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1099 1100 1101 |
# File 'lib/models/porcelain.rb', line 1099 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1101 1102 1103 |
# File 'lib/models/porcelain.rb', line 1101 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1103 1104 1105 |
# File 'lib/models/porcelain.rb', line 1103 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1105 1106 1107 |
# File 'lib/models/porcelain.rb', line 1105 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1107 1108 1109 |
# File 'lib/models/porcelain.rb', line 1107 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1137 1138 1139 1140 1141 1142 1143 |
# File 'lib/models/porcelain.rb', line 1137 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 |