MCPcopy Create free account
hub / github.com/dagger/dagger / with_contents

Method with_contents

sdk/python/src/dagger/client/gen.py:10602–10614  ·  view source on GitHub ↗

Return a new json value, decoded from the given content Parameters ---------- contents: New JSON-encoded contents

(self, contents: JSON)

Source from the content-addressed store, hash-verified

10600 return JSONValue(_ctx)
10601
10602 def with_contents(self, contents: JSON) -> Self:
10603 """Return a new json value, decoded from the given content
10604
10605 Parameters
10606 ----------
10607 contents:
10608 New JSON-encoded contents
10609 """
10610 _args = [
10611 Arg("contents", contents),
10612 ]
10613 _ctx = self._select("withContents", _args)
10614 return JSONValue(_ctx)
10615
10616 def with_field(self, path: list[str], value: Self) -> Self:
10617 """Set a new field at the given path

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
JSONValueClass · 0.70

Tested by

no test coverage detected