Class: SDM::MongoLegacyHost
- Inherits:
-
Object
- Object
- SDM::MongoLegacyHost
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#auth_database ⇒ Object
Returns the value of attribute auth_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.
-
#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.
-
#replica_set ⇒ Object
Returns the value of attribute replica_set.
-
#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.
-
#tls_required ⇒ Object
Returns the value of attribute tls_required.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(auth_database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, replica_set: nil, secret_store_id: nil, tags: nil, tls_required: nil, username: nil) ⇒ MongoLegacyHost
constructor
A new instance of MongoLegacyHost.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(auth_database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, replica_set: nil, secret_store_id: nil, tags: nil, tls_required: nil, username: nil) ⇒ MongoLegacyHost
Returns a new instance of MongoLegacyHost.
3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 |
# File 'lib/models/porcelain.rb', line 3998 def initialize( auth_database: nil, egress_filter: nil, healthy: nil, hostname: nil, id: nil, name: nil, password: nil, port: nil, port_override: nil, replica_set: nil, secret_store_id: nil, tags: nil, tls_required: nil, username: nil ) if auth_database != nil @auth_database = auth_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 password != nil @password = password end if port != nil @port = port end if port_override != nil @port_override = port_override end if replica_set != nil @replica_set = replica_set end if secret_store_id != nil @secret_store_id = secret_store_id end if != nil @tags = end if tls_required != nil @tls_required = tls_required end if username != nil @username = username end end |
Instance Attribute Details
#auth_database ⇒ Object
Returns the value of attribute auth_database.
3970 3971 3972 |
# File 'lib/models/porcelain.rb', line 3970 def auth_database @auth_database end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
3972 3973 3974 |
# File 'lib/models/porcelain.rb', line 3972 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
3974 3975 3976 |
# File 'lib/models/porcelain.rb', line 3974 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
3976 3977 3978 |
# File 'lib/models/porcelain.rb', line 3976 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
3978 3979 3980 |
# File 'lib/models/porcelain.rb', line 3978 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
3980 3981 3982 |
# File 'lib/models/porcelain.rb', line 3980 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
3982 3983 3984 |
# File 'lib/models/porcelain.rb', line 3982 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
3984 3985 3986 |
# File 'lib/models/porcelain.rb', line 3984 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
3986 3987 3988 |
# File 'lib/models/porcelain.rb', line 3986 def port_override @port_override end |
#replica_set ⇒ Object
Returns the value of attribute replica_set.
3988 3989 3990 |
# File 'lib/models/porcelain.rb', line 3988 def replica_set @replica_set end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
3990 3991 3992 |
# File 'lib/models/porcelain.rb', line 3990 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3992 3993 3994 |
# File 'lib/models/porcelain.rb', line 3992 def @tags end |
#tls_required ⇒ Object
Returns the value of attribute tls_required.
3994 3995 3996 |
# File 'lib/models/porcelain.rb', line 3994 def tls_required @tls_required end |
#username ⇒ Object
Returns the value of attribute username.
3996 3997 3998 |
# File 'lib/models/porcelain.rb', line 3996 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4058 4059 4060 4061 4062 4063 4064 |
# File 'lib/models/porcelain.rb', line 4058 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 |