Class GoogleCloudPlatform
- java.lang.Object
-
- com.atlassian.confluence.status.service.systeminfo.GoogleCloudPlatform
-
- All Implemented Interfaces:
CloudPlatform
public class GoogleCloudPlatform extends Object implements CloudPlatform
- Since:
- 6.12.0
-
-
Constructor Summary
Constructors Constructor Description GoogleCloudPlatform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInstanceTypeMetadataEndpoint()
Map<String,String>
getMetadataHeaders()
CloudPlatformType
getPlatformType()
String
parseInstanceType(String responseBody)
Expected responseBody format: projects/[NUMERIC_PROJECT_ID]/machineTypes/[MACHINE_TYPE] See https://cloud.google.com/compute/docs/storing-retrieving-metadata for more details
-
-
-
Method Detail
-
getInstanceTypeMetadataEndpoint
public String getInstanceTypeMetadataEndpoint()
- Specified by:
getInstanceTypeMetadataEndpoint
in interfaceCloudPlatform
- Returns:
- url string for fetching the platform instance type via the platform metadata service
-
getPlatformType
public CloudPlatformType getPlatformType()
- Specified by:
getPlatformType
in interfaceCloudPlatform
- Returns:
- the type of cloud platform, i.e. AWS or Azure
-
getMetadataHeaders
public Map<String,String> getMetadataHeaders()
- Specified by:
getMetadataHeaders
in interfaceCloudPlatform
- Returns:
- any specific request headers required to reach the platform metadata service as a map of header-value entries
-
parseInstanceType
public String parseInstanceType(String responseBody)
Expected responseBody format: projects/[NUMERIC_PROJECT_ID]/machineTypes/[MACHINE_TYPE] See https://cloud.google.com/compute/docs/storing-retrieving-metadata for more details- Specified by:
parseInstanceType
in interfaceCloudPlatform
- Parameters:
responseBody
- the response body returned by the instance type metadata endpoint- Returns:
- the Google Cloud Platform instance type parsed from the response body string
-
-