Method: SDM::Presto#initialize

Defined in:
lib/models/porcelain.rb

#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, password: nil, database: nil, port_override: nil, port: nil, username: nil, tls_required: nil) ⇒ Presto

Returns a new instance of Presto.



3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
# File 'lib/models/porcelain.rb', line 3764

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  hostname: nil,
  password: nil,
  database: nil,
  port_override: nil,
  port: nil,
  username: 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 secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if hostname != nil
    @hostname = hostname
  end
  if password != nil
    @password = password
  end
  if database != nil
    @database = database
  end
  if port_override != nil
    @port_override = port_override
  end
  if port != nil
    @port = port
  end
  if username != nil
    @username = username
  end
  if tls_required != nil
    @tls_required = tls_required
  end
end