Configures a hostname which can be used by clients within the session to reach this container. Parameters ---------- hostname: The hostname to use.
(self, hostname: str)
| 14613 | await _ctx.execute() |
| 14614 | |
| 14615 | def with_hostname(self, hostname: str) -> Self: |
| 14616 | """Configures a hostname which can be used by clients within the session |
| 14617 | to reach this container. |
| 14618 | |
| 14619 | Parameters |
| 14620 | ---------- |
| 14621 | hostname: |
| 14622 | The hostname to use. |
| 14623 | """ |
| 14624 | _args = [ |
| 14625 | Arg("hostname", hostname), |
| 14626 | ] |
| 14627 | _ctx = self._select("withHostname", _args) |
| 14628 | return Service(_ctx) |
| 14629 | |
| 14630 | def with_(self, cb: Callable[["Service"], "Service"]) -> "Service": |
| 14631 | """Call the provided callable with current Service. |