Class MetadataConfig

java.lang.Object
com.google.cloud.MetadataConfig

public class MetadataConfig extends Object
Retrieves Google Cloud project-id and a limited set of instance attributes from Metadata server.
See Also:
  • Method Details

    • getProjectId

      public static String getProjectId()
    • getZone

      public static String getZone()
    • getInstanceId

      public static String getInstanceId()
    • getClusterName

      public static String getClusterName()
    • getContainerName

      public static String getContainerName()
    • getNamespaceId

      public static String getNamespaceId()
    • getAttribute

      public static String getAttribute(String attributeName)