Class: SDM::AmazonEKS
- Inherits:
-
Object
- Object
- SDM::AmazonEKS
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
-
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#region ⇒ Object
Returns the value of attribute region.
-
#role_arn ⇒ Object
Returns the value of attribute role_arn.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil) ⇒ AmazonEKS
constructor
A new instance of AmazonEKS.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil) ⇒ AmazonEKS
Returns a new instance of AmazonEKS.
1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 |
# File 'lib/models/porcelain.rb', line 1924 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: 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 != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id 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 != nil @certificate_authority = 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_key ⇒ Object
Returns the value of attribute access_key.
1910 1911 1912 |
# File 'lib/models/porcelain.rb', line 1910 def access_key @access_key end |
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1914 1915 1916 |
# File 'lib/models/porcelain.rb', line 1914 def @certificate_authority end |
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
1918 1919 1920 |
# File 'lib/models/porcelain.rb', line 1918 def cluster_name @cluster_name end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1908 1909 1910 |
# File 'lib/models/porcelain.rb', line 1908 def endpoint @endpoint end |
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1922 1923 1924 |
# File 'lib/models/porcelain.rb', line 1922 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1902 1903 1904 |
# File 'lib/models/porcelain.rb', line 1902 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1898 1899 1900 |
# File 'lib/models/porcelain.rb', line 1898 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1900 1901 1902 |
# File 'lib/models/porcelain.rb', line 1900 def name @name end |
#region ⇒ Object
Returns the value of attribute region.
1916 1917 1918 |
# File 'lib/models/porcelain.rb', line 1916 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
1920 1921 1922 |
# File 'lib/models/porcelain.rb', line 1920 def role_arn @role_arn end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1912 1913 1914 |
# File 'lib/models/porcelain.rb', line 1912 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1906 1907 1908 |
# File 'lib/models/porcelain.rb', line 1906 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1904 1905 1906 |
# File 'lib/models/porcelain.rb', line 1904 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1980 1981 1982 1983 1984 1985 1986 |
# File 'lib/models/porcelain.rb', line 1980 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |