Class: SDM::AmazonEKS

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, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, certificate_authority_filename: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil) ⇒ AmazonEKS

Returns a new instance of AmazonEKS.



1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
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
# File 'lib/models/porcelain.rb', line 1695

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  endpoint: nil,
  access_key: nil,
  secret_access_key: nil,
  certificate_authority: nil,
  certificate_authority_filename: nil,
  region: nil,
  cluster_name: nil,
  role_arn: nil,
  healthcheck_namespace: 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 endpoint != nil
    @endpoint = endpoint
  end
  if access_key != nil
    @access_key = access_key
  end
  if secret_access_key != nil
    @secret_access_key = secret_access_key
  end
  if certificate_authority != nil
    @certificate_authority = certificate_authority
  end
  if certificate_authority_filename != nil
    @certificate_authority_filename = certificate_authority_filename
  end
  if region != nil
    @region = region
  end
  if cluster_name != nil
    @cluster_name = cluster_name
  end
  if role_arn != nil
    @role_arn = role_arn
  end
  if healthcheck_namespace != nil
    @healthcheck_namespace = healthcheck_namespace
  end
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



1679
1680
1681
# File 'lib/models/porcelain.rb', line 1679

def access_key
  @access_key
end

#certificate_authorityObject

Returns the value of attribute certificate_authority.



1683
1684
1685
# File 'lib/models/porcelain.rb', line 1683

def certificate_authority
  @certificate_authority
end

#certificate_authority_filenameObject

Returns the value of attribute certificate_authority_filename.



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

def certificate_authority_filename
  @certificate_authority_filename
end

#cluster_nameObject

Returns the value of attribute cluster_name.



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

def cluster_name
  @cluster_name
end

#endpointObject

Returns the value of attribute endpoint.



1677
1678
1679
# File 'lib/models/porcelain.rb', line 1677

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

Returns the value of attribute healthcheck_namespace.



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

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



1673
1674
1675
# File 'lib/models/porcelain.rb', line 1673

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1669
1670
1671
# File 'lib/models/porcelain.rb', line 1669

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1671
1672
1673
# File 'lib/models/porcelain.rb', line 1671

def name
  @name
end

#regionObject

Returns the value of attribute region.



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

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



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

def role_arn
  @role_arn
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



1681
1682
1683
# File 'lib/models/porcelain.rb', line 1681

def secret_access_key
  @secret_access_key
end

#tagsObject

Tags is a map of key, value pairs.



1675
1676
1677
# File 'lib/models/porcelain.rb', line 1675

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1751
1752
1753
1754
1755
1756
1757
# File 'lib/models/porcelain.rb', line 1751

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