public class GoogleCloudPlatform extends Object implements CloudPlatform
Constructor and Description |
---|
GoogleCloudPlatform() |
Modifier and Type | Method and 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
|
public String getInstanceTypeMetadataEndpoint()
getInstanceTypeMetadataEndpoint
in interface CloudPlatform
public CloudPlatformType getPlatformType()
getPlatformType
in interface CloudPlatform
public Map<String,String> getMetadataHeaders()
getMetadataHeaders
in interface CloudPlatform
public String parseInstanceType(String responseBody)
parseInstanceType
in interface CloudPlatform
responseBody
- the response body returned by the instance type metadata endpointCopyright © 2003–2021 Atlassian. All rights reserved.