Interface DetectedPlatform
-
public interface DetectedPlatformRepresents a GCP specific platform on which a cloud application can run.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getAttributes()Method to retrieve the attributes associated with the compute platform on which the application is running as key-value pairs.java.lang.StringgetProjectId()Method to retrieve the GCP Project ID in which the GCP specific platform exists.GCPPlatformDetector.SupportedPlatformgetSupportedPlatform()Method to retrieve the underlying compute platform on which application is running.
-
-
-
Method Detail
-
getSupportedPlatform
GCPPlatformDetector.SupportedPlatform getSupportedPlatform()
Method to retrieve the underlying compute platform on which application is running.- Returns:
- the
GCPPlatformDetector.SupportedPlatformrepresenting the Google Cloud platform on which application is running.
-
getProjectId
java.lang.String getProjectId()
Method to retrieve the GCP Project ID in which the GCP specific platform exists. Every valid platform must have a GCP Project ID associated with it.- Returns:
- the Google Cloud project ID.
-
getAttributes
java.util.Map<java.lang.String,java.lang.String> getAttributes()
Method to retrieve the attributes associated with the compute platform on which the application is running as key-value pairs. The valid keys to query on thisMapare specified in theAttributeKeys.- Returns:
- a
Mapof attributes specific to the underlying compute platform.
-
-