Class: SDM::Athena
- Inherits:
-
Object
- Object
- SDM::Athena
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#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.
-
#output ⇒ Object
Returns the value of attribute output.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#role_arn ⇒ Object
Returns the value of attribute role_arn.
-
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
-
#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(access_key: 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
constructor
A new instance of Athena.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(access_key: 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.
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 |
# File 'lib/models/porcelain.rb', line 1045 def initialize( access_key: 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 @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 = == nil ? SDM::() : end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
1019 1020 1021 |
# File 'lib/models/porcelain.rb', line 1019 def access_key @access_key end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1021 1022 1023 |
# File 'lib/models/porcelain.rb', line 1021 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1023 1024 1025 |
# File 'lib/models/porcelain.rb', line 1023 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1025 1026 1027 |
# File 'lib/models/porcelain.rb', line 1025 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1027 1028 1029 |
# File 'lib/models/porcelain.rb', line 1027 def name @name end |
#output ⇒ Object
Returns the value of attribute output.
1029 1030 1031 |
# File 'lib/models/porcelain.rb', line 1029 def output @output end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1031 1032 1033 |
# File 'lib/models/porcelain.rb', line 1031 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
1033 1034 1035 |
# File 'lib/models/porcelain.rb', line 1033 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
1035 1036 1037 |
# File 'lib/models/porcelain.rb', line 1035 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
1037 1038 1039 |
# File 'lib/models/porcelain.rb', line 1037 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1039 1040 1041 |
# File 'lib/models/porcelain.rb', line 1039 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1041 1042 1043 |
# File 'lib/models/porcelain.rb', line 1041 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1043 1044 1045 |
# File 'lib/models/porcelain.rb', line 1043 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/models/porcelain.rb', line 1075 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 |