Class: SDM::Azure
- Inherits:
-
Object
- Object
- SDM::Azure
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#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.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#password ⇒ Object
Returns the value of attribute password.
-
#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.
-
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
Instance Method Summary collapse
-
#initialize(app_id: nil, egress_filter: nil, healthy: nil, id: nil, name: nil, password: nil, secret_store_id: nil, tags: nil, tenant_id: nil) ⇒ Azure
constructor
A new instance of Azure.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(app_id: nil, egress_filter: nil, healthy: nil, id: nil, name: nil, password: nil, secret_store_id: nil, tags: nil, tenant_id: nil) ⇒ Azure
Returns a new instance of Azure.
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 |
# File 'lib/models/porcelain.rb', line 1231 def initialize( app_id: nil, egress_filter: nil, healthy: nil, id: nil, name: nil, password: nil, secret_store_id: nil, tags: nil, tenant_id: nil ) @app_id = app_id == nil ? "" : app_id @egress_filter = egress_filter == nil ? "" : egress_filter @healthy = healthy == nil ? false : healthy @id = id == nil ? "" : id @name = name == nil ? "" : name @password = password == nil ? "" : password @secret_store_id = secret_store_id == nil ? "" : secret_store_id @tags = == nil ? SDM::() : @tenant_id = tenant_id == nil ? "" : tenant_id end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
1213 1214 1215 |
# File 'lib/models/porcelain.rb', line 1213 def app_id @app_id end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1215 1216 1217 |
# File 'lib/models/porcelain.rb', line 1215 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1217 1218 1219 |
# File 'lib/models/porcelain.rb', line 1217 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1219 1220 1221 |
# File 'lib/models/porcelain.rb', line 1219 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1221 1222 1223 |
# File 'lib/models/porcelain.rb', line 1221 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1223 1224 1225 |
# File 'lib/models/porcelain.rb', line 1223 def password @password end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1225 1226 1227 |
# File 'lib/models/porcelain.rb', line 1225 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1227 1228 1229 |
# File 'lib/models/porcelain.rb', line 1227 def @tags end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
1229 1230 1231 |
# File 'lib/models/porcelain.rb', line 1229 def tenant_id @tenant_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/models/porcelain.rb', line 1253 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 |