public interface ResourceTypeEnvironmentGetter
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name)
Gets the value of the specified metadata server attribute.
|
String |
getEnv(String name)
Gets the value of the specified environment variable.
|
String getEnv(String name)
name
- the name of the environment variablenull
if the variable is not defined
in the system environmentSystem.getenv()
String getAttribute(String name)
name
- the name of the metadata server attribute.null
if the attribute is not defined
in the metadata or the server is not available.MetadataConfig.getAttribute(String)
Copyright © 2023 Google LLC. All rights reserved.