Class: SDM::Snowflake
- Inherits:
-
Object
- Object
- SDM::Snowflake
- 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_override ⇒ Object
Returns the value of attribute port_override.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#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_override: nil, schema: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ Snowflake
constructor
A new instance of Snowflake.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port_override: nil, schema: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ Snowflake
Returns a new instance of Snowflake.
7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 |
# File 'lib/models/porcelain.rb', line 7195 def initialize( database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port_override: nil, schema: nil, secret_store_id: nil, tags: nil, username: nil ) if database != nil @database = database end 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_override != nil @port_override = port_override end if schema != nil @schema = schema 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
#database ⇒ Object
Returns the value of attribute database.
7171 7172 7173 |
# File 'lib/models/porcelain.rb', line 7171 def database @database end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
7173 7174 7175 |
# File 'lib/models/porcelain.rb', line 7173 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
7175 7176 7177 |
# File 'lib/models/porcelain.rb', line 7175 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
7177 7178 7179 |
# File 'lib/models/porcelain.rb', line 7177 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
7179 7180 7181 |
# File 'lib/models/porcelain.rb', line 7179 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
7181 7182 7183 |
# File 'lib/models/porcelain.rb', line 7181 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
7183 7184 7185 |
# File 'lib/models/porcelain.rb', line 7183 def password @password end |
#port_override ⇒ Object
Returns the value of attribute port_override.
7185 7186 7187 |
# File 'lib/models/porcelain.rb', line 7185 def port_override @port_override end |
#schema ⇒ Object
Returns the value of attribute schema.
7187 7188 7189 |
# File 'lib/models/porcelain.rb', line 7187 def schema @schema end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
7189 7190 7191 |
# File 'lib/models/porcelain.rb', line 7189 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
7191 7192 7193 |
# File 'lib/models/porcelain.rb', line 7191 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
7193 7194 7195 |
# File 'lib/models/porcelain.rb', line 7193 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7247 7248 7249 7250 7251 7252 7253 |
# File 'lib/models/porcelain.rb', line 7247 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 |