Class GoogleCloudPlatform
java.lang.Object
com.atlassian.confluence.status.service.systeminfo.GoogleCloudPlatform
- All Implemented Interfaces:
CloudPlatform
- Since:
- 6.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseInstanceType
(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
-
Constructor Details
-
GoogleCloudPlatform
public GoogleCloudPlatform()
-
-
Method Details
-
getInstanceTypeMetadataEndpoint
- Specified by:
getInstanceTypeMetadataEndpoint
in interfaceCloudPlatform
- Returns:
- url string for fetching the platform instance type via the platform metadata service
-
getPlatformType
- Specified by:
getPlatformType
in interfaceCloudPlatform
- Returns:
- the type of cloud platform, i.e. AWS or Azure
-
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
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
-