Constructor and Description |
---|
ManifestObject(Map<String,Object> source,
FilePath file)
Build the manifest object from source.
|
Modifier and Type | Method and Description |
---|---|
void |
addLabel(String key,
String value)
Adds the specified label key and value to this
Manifests.ManifestObject 's metadata labels. |
String |
describe() |
String |
getApiVersion() |
FilePath |
getFile() |
String |
getKind() |
Optional<String> |
getName() |
Map<String,String> |
getOrCreateLabels()
Ensures this
Manifests.ManifestObject has labels, modifying in-place as needed, finally
returning the labels. |
Map<String,Object> |
getSource() |
public FilePath getFile()
public String getApiVersion()
public String getKind()
public Map<String,String> getOrCreateLabels()
Manifests.ManifestObject
has labels, modifying in-place as needed, finally
returning the labels.Manifests.ManifestObject
.public void addLabel(String key, String value)
Manifests.ManifestObject
's metadata labels. Will
ensure a label map exists upon execution.key
- The key of the label to be added.value
- The value of the label to be added.public String describe()
Copyright © 2016–2021 Google. All rights reserved.