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 Details

    • GoogleCloudPlatform

      public GoogleCloudPlatform()
  • Method Details

    • getInstanceTypeMetadataEndpoint

      public String getInstanceTypeMetadataEndpoint()
      Specified by:
      getInstanceTypeMetadataEndpoint in interface CloudPlatform
      Returns:
      url string for fetching the platform instance type via the platform metadata service
    • getPlatformType

      public CloudPlatformType getPlatformType()
      Specified by:
      getPlatformType in interface CloudPlatform
      Returns:
      the type of cloud platform, i.e. AWS or Azure
    • getMetadataHeaders

      public Map<String,String> getMetadataHeaders()
      Specified by:
      getMetadataHeaders in interface CloudPlatform
      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 interface CloudPlatform
      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