class SDM::MongoLegacyReplicaset

def initialize(

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  hostname: nil,
  auth_database: nil,
  port_override: nil,
  username: nil,
  password: nil,
  port: nil,
  replica_set: nil,
  connect_to_replica: nil,
  tls_required: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if healthy != nil
    @healthy = healthy
  end
  if tags != nil
    @tags = tags
  end
  if hostname != nil
    @hostname = hostname
  end
  if auth_database != nil
    @auth_database = auth_database
  end
  if port_override != nil
    @port_override = port_override
  end
  if username != nil
    @username = username
  end
  if password != nil
    @password = password
  end
  if port != nil
    @port = port
  end
  if replica_set != nil
    @replica_set = replica_set
  end
  if connect_to_replica != nil
    @connect_to_replica = connect_to_replica
  end
  if tls_required != nil
    @tls_required = tls_required
  end
end

def to_json(options = {})

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