Class: SDM::HTTPNoAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, url: nil, healthcheck_path: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPNoAuth

Returns a new instance of HTTPNoAuth.



1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
# File 'lib/models/porcelain.rb', line 1707

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  egress_filter: nil,
  url: nil,
  healthcheck_path: nil,
  headers_blacklist: nil,
  default_path: nil,
  subdomain: 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 egress_filter != nil
    @egress_filter = egress_filter
  end
  if url != nil
    @url = url
  end
  if healthcheck_path != nil
    @healthcheck_path = healthcheck_path
  end
  if headers_blacklist != nil
    @headers_blacklist = headers_blacklist
  end
  if default_path != nil
    @default_path = default_path
  end
  if subdomain != nil
    @subdomain = subdomain
  end
end

Instance Attribute Details

#default_pathObject

Returns the value of attribute default_path.



1703
1704
1705
# File 'lib/models/porcelain.rb', line 1703

def default_path
  @default_path
end

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



1695
1696
1697
# File 'lib/models/porcelain.rb', line 1695

def egress_filter
  @egress_filter
end

#headers_blacklistObject

Returns the value of attribute headers_blacklist.



1701
1702
1703
# File 'lib/models/porcelain.rb', line 1701

def headers_blacklist
  @headers_blacklist
end

#healthcheck_pathObject

Returns the value of attribute healthcheck_path.



1699
1700
1701
# File 'lib/models/porcelain.rb', line 1699

def healthcheck_path
  @healthcheck_path
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



1689
1690
1691
# File 'lib/models/porcelain.rb', line 1689

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1685
1686
1687
# File 'lib/models/porcelain.rb', line 1685

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1687
1688
1689
# File 'lib/models/porcelain.rb', line 1687

def name
  @name
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



1693
1694
1695
# File 'lib/models/porcelain.rb', line 1693

def secret_store_id
  @secret_store_id
end

#subdomainObject

Returns the value of attribute subdomain.



1705
1706
1707
# File 'lib/models/porcelain.rb', line 1705

def subdomain
  @subdomain
end

#tagsObject

Tags is a map of key, value pairs.



1691
1692
1693
# File 'lib/models/porcelain.rb', line 1691

def tags
  @tags
end

#urlObject

Returns the value of attribute url.



1697
1698
1699
# File 'lib/models/porcelain.rb', line 1697

def url
  @url
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1755
1756
1757
1758
1759
1760
1761
# File 'lib/models/porcelain.rb', line 1755

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