Class MetadataConfig (2.3.5)

public class MetadataConfig

Retrieves Google Cloud project-id and a limited set of instance attributes from Metadata server.

Inheritance

java.lang.Object > MetadataConfig

Methods

getAttribute(String attributeName)

public static String getAttribute(String attributeName)
Parameter
NameDescription
attributeNameString
Returns
TypeDescription
String

getClusterName()

public static String getClusterName()
Returns
TypeDescription
String

getContainerName()

public static String getContainerName()
Returns
TypeDescription
String

getInstanceId()

public static String getInstanceId()
Returns
TypeDescription
String

getNamespaceId()

public static String getNamespaceId()
Returns
TypeDescription
String

getProjectId()

public static String getProjectId()
Returns
TypeDescription
String

getZone()

public static String getZone()
Returns
TypeDescription
String