Class: SDM::Athena

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_key: nil, bind_interface: nil, egress_filter: nil, healthy: nil, id: nil, name: nil, output: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil) ⇒ Athena

Returns a new instance of Athena.



1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/models/porcelain.rb', line 1298

def initialize(
  access_key: nil,
  bind_interface: nil,
  egress_filter: nil,
  healthy: nil,
  id: nil,
  name: nil,
  output: nil,
  port_override: nil,
  region: nil,
  role_arn: nil,
  role_external_id: nil,
  secret_access_key: nil,
  secret_store_id: nil,
  tags: nil
)
  @access_key = access_key == nil ? "" : access_key
  @bind_interface = bind_interface == nil ? "" : bind_interface
  @egress_filter = egress_filter == nil ? "" : egress_filter
  @healthy = healthy == nil ? false : healthy
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @output = output == nil ? "" : output
  @port_override = port_override == nil ? 0 : port_override
  @region = region == nil ? "" : region
  @role_arn = role_arn == nil ? "" : role_arn
  @role_external_id = role_external_id == nil ? "" : role_external_id
  @secret_access_key = secret_access_key == nil ? "" : secret_access_key
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



1270
1271
1272
# File 'lib/models/porcelain.rb', line 1270

def access_key
  @access_key
end

#bind_interfaceObject

Bind interface



1272
1273
1274
# File 'lib/models/porcelain.rb', line 1272

def bind_interface
  @bind_interface
end

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



1274
1275
1276
# File 'lib/models/porcelain.rb', line 1274

def egress_filter
  @egress_filter
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



1276
1277
1278
# File 'lib/models/porcelain.rb', line 1276

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1278
1279
1280
# File 'lib/models/porcelain.rb', line 1278

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1280
1281
1282
# File 'lib/models/porcelain.rb', line 1280

def name
  @name
end

#outputObject

Returns the value of attribute output.



1282
1283
1284
# File 'lib/models/porcelain.rb', line 1282

def output
  @output
end

#port_overrideObject

Returns the value of attribute port_override.



1284
1285
1286
# File 'lib/models/porcelain.rb', line 1284

def port_override
  @port_override
end

#regionObject

Returns the value of attribute region.



1286
1287
1288
# File 'lib/models/porcelain.rb', line 1286

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



1288
1289
1290
# File 'lib/models/porcelain.rb', line 1288

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



1290
1291
1292
# File 'lib/models/porcelain.rb', line 1290

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



1292
1293
1294
# File 'lib/models/porcelain.rb', line 1292

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



1294
1295
1296
# File 'lib/models/porcelain.rb', line 1294

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



1296
1297
1298
# File 'lib/models/porcelain.rb', line 1296

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1330
1331
1332
1333
1334
1335
1336
# File 'lib/models/porcelain.rb', line 1330

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end