Class: SDM::Redshift
- Inherits:
-
Object
- Object
- SDM::Redshift
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#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.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#override_database ⇒ Object
Returns the value of attribute override_database.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#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.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, override_database: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ Redshift
constructor
A new instance of Redshift.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, override_database: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ Redshift
Returns a new instance of Redshift.
5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 |
# File 'lib/models/porcelain.rb', line 5879 def initialize( database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, override_database: nil, password: nil, port: nil, port_override: nil, secret_store_id: nil, tags: nil, username: nil ) if database != nil @database = database end if egress_filter != nil @egress_filter = egress_filter end if healthy != nil @healthy = healthy end if hostname != nil @hostname = hostname end if id != nil @id = id end if name != nil @name = name end if override_database != nil @override_database = override_database end if password != nil @password = password end if port != nil @port = port end if port_override != nil @port_override = port_override end if secret_store_id != nil @secret_store_id = secret_store_id end if != nil = end if username != nil @username = username end end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
5853 5854 5855 |
# File 'lib/models/porcelain.rb', line 5853 def database @database end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
5855 5856 5857 |
# File 'lib/models/porcelain.rb', line 5855 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
5857 5858 5859 |
# File 'lib/models/porcelain.rb', line 5857 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
5859 5860 5861 |
# File 'lib/models/porcelain.rb', line 5859 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
5861 5862 5863 |
# File 'lib/models/porcelain.rb', line 5861 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
5863 5864 5865 |
# File 'lib/models/porcelain.rb', line 5863 def name @name end |
#override_database ⇒ Object
Returns the value of attribute override_database.
5865 5866 5867 |
# File 'lib/models/porcelain.rb', line 5865 def override_database @override_database end |
#password ⇒ Object
Returns the value of attribute password.
5867 5868 5869 |
# File 'lib/models/porcelain.rb', line 5867 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
5869 5870 5871 |
# File 'lib/models/porcelain.rb', line 5869 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
5871 5872 5873 |
# File 'lib/models/porcelain.rb', line 5871 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
5873 5874 5875 |
# File 'lib/models/porcelain.rb', line 5873 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5875 5876 5877 |
# File 'lib/models/porcelain.rb', line 5875 def end |
#username ⇒ Object
Returns the value of attribute username.
5877 5878 5879 |
# File 'lib/models/porcelain.rb', line 5877 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5935 5936 5937 5938 5939 5940 5941 |
# File 'lib/models/porcelain.rb', line 5935 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 |