one
Assert that exactly one entry in the map satisfies a condition.
Examples
Exactly one label sets the environment to prod:
asset.labels.one(key == "env" && value == "prod")
oneAssert that exactly one entry in the map satisfies a condition.
Exactly one label sets the environment to prod:
asset.labels.one(key == "env" && value == "prod")