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) ⇒ AmazonEKS

Returns a new instance of AmazonEKS.



1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
# File 'lib/models/porcelain.rb', line 1652

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 \
)
	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
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



1639
1640
1641
# File 'lib/models/porcelain.rb', line 1639

def access_key
  @access_key
end

#certificate_authorityObject

Returns the value of attribute certificate_authority.



1643
1644
1645
# File 'lib/models/porcelain.rb', line 1643

def certificate_authority
  @certificate_authority
end

#certificate_authority_filenameObject

Returns the value of attribute certificate_authority_filename.



1645
1646
1647
# File 'lib/models/porcelain.rb', line 1645

def certificate_authority_filename
  @certificate_authority_filename
end

#cluster_nameObject

Returns the value of attribute cluster_name.



1649
1650
1651
# File 'lib/models/porcelain.rb', line 1649

def cluster_name
  @cluster_name
end

#endpointObject

Returns the value of attribute endpoint.



1637
1638
1639
# File 'lib/models/porcelain.rb', line 1637

def endpoint
  @endpoint
end

#healthyObject

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



1633
1634
1635
# File 'lib/models/porcelain.rb', line 1633

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1629
1630
1631
# File 'lib/models/porcelain.rb', line 1629

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1631
1632
1633
# File 'lib/models/porcelain.rb', line 1631

def name
  @name
end

#regionObject

Returns the value of attribute region.



1647
1648
1649
# File 'lib/models/porcelain.rb', line 1647

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



1651
1652
1653
# File 'lib/models/porcelain.rb', line 1651

def role_arn
  @role_arn
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



1641
1642
1643
# File 'lib/models/porcelain.rb', line 1641

def secret_access_key
  @secret_access_key
end

#tagsObject

Tags is a map of key, value pairs.



1635
1636
1637
# File 'lib/models/porcelain.rb', line 1635

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1714
1715
1716
1717
1718
1719
1720
# File 'lib/models/porcelain.rb', line 1714

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