Class: SDM::DynamoDB
- Inherits:
-
Object
- Object
- SDM::DynamoDB
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#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.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#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.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil) ⇒ DynamoDB
Returns a new instance of DynamoDB.
1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 |
# File 'lib/models/porcelain.rb', line 1219 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if region != nil @region = region end if endpoint != nil @endpoint = endpoint end if port_override != nil @port_override = port_override end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
1209 1210 1211 |
# File 'lib/models/porcelain.rb', line 1209 def access_key @access_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1215 1216 1217 |
# File 'lib/models/porcelain.rb', line 1215 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1203 1204 1205 |
# File 'lib/models/porcelain.rb', line 1203 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1199 1200 1201 |
# File 'lib/models/porcelain.rb', line 1199 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1201 1202 1203 |
# File 'lib/models/porcelain.rb', line 1201 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1217 1218 1219 |
# File 'lib/models/porcelain.rb', line 1217 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
1213 1214 1215 |
# File 'lib/models/porcelain.rb', line 1213 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1211 1212 1213 |
# File 'lib/models/porcelain.rb', line 1211 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1207 1208 1209 |
# File 'lib/models/porcelain.rb', line 1207 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1205 1206 1207 |
# File 'lib/models/porcelain.rb', line 1205 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1263 1264 1265 1266 1267 1268 1269 |
# File 'lib/models/porcelain.rb', line 1263 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 |