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

Method new_string

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

Encode a string to json Parameters ---------- value: New string value

(self, value: str)

Source from the content-addressed store, hash-verified

10586 return JSONValue(_ctx)
10587
10588 def new_string(self, value: str) -> Self:
10589 """Encode a string to json
10590
10591 Parameters
10592 ----------
10593 value:
10594 New string value
10595 """
10596 _args = [
10597 Arg("value", value),
10598 ]
10599 _ctx = self._select("newString", _args)
10600 return JSONValue(_ctx)
10601
10602 def with_contents(self, contents: JSON) -> Self:
10603 """Return a new json value, decoded from the given content

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
JSONValueClass · 0.70

Tested by

no test coverage detected