mirror of
https://github.com/LukeHagar/speakeasy-playground.git
synced 2025-12-10 04:21:32 +00:00
union array
This commit is contained in:
8
docs/models/components/examplewithoneofarray.md
Normal file
8
docs/models/components/examplewithoneofarray.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# ExampleWithOneOfArray
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------ | ------------------ | ------------------ | ------------------ |
|
||||
| `one_of_array` | List[*int*] | :heavy_check_mark: | N/A |
|
||||
@@ -1,8 +0,0 @@
|
||||
# ExampleRequest
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
|
||||
| `results_per_page` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100) |
|
||||
@@ -13,22 +13,29 @@
|
||||
|
||||
```python
|
||||
import shippo
|
||||
from shippo.models import components
|
||||
|
||||
s = shippo.Shippo()
|
||||
|
||||
req = components.ExampleWithOneOfArray(
|
||||
one_of_array=[
|
||||
904965,
|
||||
],
|
||||
)
|
||||
|
||||
res = s.example(results_per_page=904965)
|
||||
res = s.example(req)
|
||||
|
||||
if res.status_code == 200:
|
||||
if res is not None:
|
||||
# handle response
|
||||
pass
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
|
||||
| `results_per_page` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100) |
|
||||
| Parameter | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
||||
| `request` | [components.ExampleWithOneOfArray](../../models/components/examplewithoneofarray.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
Reference in New Issue
Block a user