Skip to content

Commit ea4d061

Browse files
chore(internal): codegen related update (#2505)
1 parent 23e94c9 commit ea4d061

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,23 @@ for account in first_page.result:
142142
# Remove `await` for non-async usage.
143143
```
144144

145+
## Nested params
146+
147+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
148+
149+
```python
150+
from cloudflare import Cloudflare
151+
152+
client = Cloudflare()
153+
154+
account = client.accounts.create(
155+
name="name",
156+
type="standard",
157+
unit={"id": "f267e341f3dd4697bd3b9f71dd96247f"},
158+
)
159+
print(account.unit)
160+
```
161+
145162
## File uploads
146163

147164
Request parameters that correspond to file uploads can be passed as `bytes`, a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.

0 commit comments

Comments
 (0)