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(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil) ⇒ Athena
constructor
A new instance of Athena.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil) ⇒ Athena
Returns a new instance of Athena.
922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/models/porcelain.rb', line 922 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: 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 egress_filter != nil @egress_filter = egress_filter end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if output != nil @output = output end if port_override != nil @port_override = port_override end if region != nil @region = region end if role_arn != nil @role_arn = role_arn end if role_external_id != nil @role_external_id = role_external_id end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
908 909 910 |
# File 'lib/models/porcelain.rb', line 908 def access_key @access_key end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
906 907 908 |
# File 'lib/models/porcelain.rb', line 906 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
900 901 902 |
# File 'lib/models/porcelain.rb', line 900 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
896 897 898 |
# File 'lib/models/porcelain.rb', line 896 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
898 899 900 |
# File 'lib/models/porcelain.rb', line 898 def name @name end |
#output ⇒ Object
Returns the value of attribute output.
912 913 914 |
# File 'lib/models/porcelain.rb', line 912 def output @output end |
#port_override ⇒ Object
Returns the value of attribute port_override.
914 915 916 |
# File 'lib/models/porcelain.rb', line 914 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
916 917 918 |
# File 'lib/models/porcelain.rb', line 916 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
918 919 920 |
# File 'lib/models/porcelain.rb', line 918 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
920 921 922 |
# File 'lib/models/porcelain.rb', line 920 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
910 911 912 |
# File 'lib/models/porcelain.rb', line 910 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
904 905 906 |
# File 'lib/models/porcelain.rb', line 904 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
902 903 904 |
# File 'lib/models/porcelain.rb', line 902 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
978 979 980 981 982 983 984 |
# File 'lib/models/porcelain.rb', line 978 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 |