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, 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 = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



1019
1020
1021
# File 'lib/models/porcelain.rb', line 1019

def access_key
  @access_key
end

#egress_filterObject

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

#healthyObject

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

#idObject

Unique identifier of the Resource.



1025
1026
1027
# File 'lib/models/porcelain.rb', line 1025

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1027
1028
1029
# File 'lib/models/porcelain.rb', line 1027

def name
  @name
end

#outputObject

Returns the value of attribute output.



1029
1030
1031
# File 'lib/models/porcelain.rb', line 1029

def output
  @output
end

#port_overrideObject

Returns the value of attribute port_override.



1031
1032
1033
# File 'lib/models/porcelain.rb', line 1031

def port_override
  @port_override
end

#regionObject

Returns the value of attribute region.



1033
1034
1035
# File 'lib/models/porcelain.rb', line 1033

def region
  @region
end

#role_arnObject

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_idObject

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_keyObject

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_idObject

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

#tagsObject

Tags is a map of key, value pairs.



1043
1044
1045
# File 'lib/models/porcelain.rb', line 1043

def tags
  @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(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end