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 CloudPlatformpublic CloudPlatformType getPlatformType()
getPlatformType in interface CloudPlatformpublic Map<String,String> getMetadataHeaders()
getMetadataHeaders in interface CloudPlatformpublic String parseInstanceType(String responseBody)
parseInstanceType in interface CloudPlatformresponseBody - the response body returned by the instance type metadata endpointCopyright © 2003–2020 Atlassian. All rights reserved.