Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"skip_formatting": false,
"enable_wire_tests": true
},
"sdkVersion": "14.8.0"
"sdkVersion": "14.9.0"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "samsara-api"
version = "14.8.0"
version = "14.9.0"
description = ""
readme = "README.md"
authors = []
Expand Down
24 changes: 20 additions & 4 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5464,6 +5464,22 @@ client.beta_ap_is.list_functions_storage_files()
<dl>
<dd>

**prefix:** `typing.Optional[str]` — Only list files and immediate subfolders under this path prefix, for example `logs/`.

</dd>
</dl>

<dl>
<dd>

**group_by_folder:** `typing.Optional[bool]` — When true, roll immediate subfolders up into the `folders` field and return only files directly under the prefix in `data`.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -9295,7 +9311,7 @@ client.beta_ap_is.create_purchase_order(
<dd>

**other_cost:** `typing.Optional[
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
]`

</dd>
Expand All @@ -9306,7 +9322,7 @@ client.beta_ap_is.create_purchase_order(

**parts:** `typing.Optional[
typing.Sequence[
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody
]
]` — Parts ordered on the purchase order.

Expand Down Expand Up @@ -9539,7 +9555,7 @@ client.beta_ap_is.update_purchase_order(
<dd>

**other_cost:** `typing.Optional[
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
]`

</dd>
Expand All @@ -9550,7 +9566,7 @@ client.beta_ap_is.update_purchase_order(

**parts:** `typing.Optional[
typing.Sequence[
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody
]
]` — Parts ordered on the purchase order.

Expand Down
75 changes: 39 additions & 36 deletions src/samsara/__init__.py

Large diffs are not rendered by default.

68 changes: 44 additions & 24 deletions src/samsara/beta_ap_is/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
from ..types.create_part_inventory_location_entity_part_inventory_location_money_input_type_request_body import (
CreatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody,
)
from ..types.create_purchase_order_entity_purchase_order_money_input_public_varianta_2_e_1675_a_5_a_65_type_request_body import (
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody,
from ..types.create_purchase_order_entity_purchase_order_money_input_public_variantc_9366_b_66_e_6_fc_type_request_body import (
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody,
)
from ..types.create_purchase_order_entity_purchase_order_purchase_order_part_input_public_variant_63_e_9_febe_395_e_type_request_body import (
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody,
from ..types.create_purchase_order_entity_purchase_order_purchase_order_part_input_public_variantfe_4658938_a_0_f_type_request_body import (
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody,
)
from ..types.create_purchase_order_entity_purchase_order_tax_adjustment_input_type_request_body import (
CreatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody,
Expand Down Expand Up @@ -385,11 +385,11 @@
from ..types.update_part_inventory_location_entity_part_inventory_location_money_input_type_request_body import (
UpdatePartInventoryLocationEntityPartInventoryLocationMoneyInputTypeRequestBody,
)
from ..types.update_purchase_order_entity_purchase_order_money_input_public_varianta_34_bfd_5_a_4152_type_request_body import (
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody,
from ..types.update_purchase_order_entity_purchase_order_money_input_public_variantc_9366_b_66_e_6_fc_type_request_body import (
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody,
)
from ..types.update_purchase_order_entity_purchase_order_purchase_order_part_input_public_variant_1_a_94_e_81632_ea_type_request_body import (
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody,
from ..types.update_purchase_order_entity_purchase_order_purchase_order_part_input_public_variant_5_e_7_c_0_da_15_f_4_c_type_request_body import (
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody,
)
from ..types.update_purchase_order_entity_purchase_order_tax_adjustment_input_type_request_body import (
UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody,
Expand Down Expand Up @@ -3320,6 +3320,8 @@ def list_functions_storage_files(
limit: typing.Optional[int] = None,
include_download_urls: typing.Optional[bool] = None,
include_upload_urls: typing.Optional[bool] = None,
prefix: typing.Optional[str] = None,
group_by_folder: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> FunctionsStorageListFunctionsStorageFilesResponseBody:
"""
Expand All @@ -3346,6 +3348,12 @@ def list_functions_storage_files(
include_upload_urls : typing.Optional[bool]
If true, include presigned upload URLs for each file. Requires write permission.

prefix : typing.Optional[str]
Only list files and immediate subfolders under this path prefix, for example `logs/`.

group_by_folder : typing.Optional[bool]
When true, roll immediate subfolders up into the `folders` field and return only files directly under the prefix in `data`.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -3368,6 +3376,8 @@ def list_functions_storage_files(
limit=limit,
include_download_urls=include_download_urls,
include_upload_urls=include_upload_urls,
prefix=prefix,
group_by_folder=group_by_folder,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -5544,11 +5554,11 @@ def create_purchase_order(
invoice_number: typing.Optional[str] = OMIT,
notes: typing.Optional[str] = OMIT,
other_cost: typing.Optional[
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
] = OMIT,
parts: typing.Optional[
typing.Sequence[
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody
]
] = OMIT,
po_number_prefix: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -5584,9 +5594,9 @@ def create_purchase_order(
notes : typing.Optional[str]
Free-text notes for the purchase order.

other_cost : typing.Optional[CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody]
other_cost : typing.Optional[CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody]

parts : typing.Optional[typing.Sequence[CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody]]
parts : typing.Optional[typing.Sequence[CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody]]
Parts ordered on the purchase order.

po_number_prefix : typing.Optional[str]
Expand Down Expand Up @@ -5682,11 +5692,11 @@ def update_purchase_order(
notes: typing.Optional[str] = OMIT,
order_status: typing.Optional[EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBodyOrderStatus] = OMIT,
other_cost: typing.Optional[
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
] = OMIT,
parts: typing.Optional[
typing.Sequence[
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody
]
] = OMIT,
tax: typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody] = OMIT,
Expand Down Expand Up @@ -5721,9 +5731,9 @@ def update_purchase_order(
order_status : typing.Optional[EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBodyOrderStatus]
Current customer-visible status of the purchase order. Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`

other_cost : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody]
other_cost : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody]

parts : typing.Optional[typing.Sequence[UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody]]
parts : typing.Optional[typing.Sequence[UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody]]
Parts ordered on the purchase order.

tax : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody]
Expand Down Expand Up @@ -12398,6 +12408,8 @@ async def list_functions_storage_files(
limit: typing.Optional[int] = None,
include_download_urls: typing.Optional[bool] = None,
include_upload_urls: typing.Optional[bool] = None,
prefix: typing.Optional[str] = None,
group_by_folder: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> FunctionsStorageListFunctionsStorageFilesResponseBody:
"""
Expand All @@ -12424,6 +12436,12 @@ async def list_functions_storage_files(
include_upload_urls : typing.Optional[bool]
If true, include presigned upload URLs for each file. Requires write permission.

prefix : typing.Optional[str]
Only list files and immediate subfolders under this path prefix, for example `logs/`.

group_by_folder : typing.Optional[bool]
When true, roll immediate subfolders up into the `folders` field and return only files directly under the prefix in `data`.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -12454,6 +12472,8 @@ async def main() -> None:
limit=limit,
include_download_urls=include_download_urls,
include_upload_urls=include_upload_urls,
prefix=prefix,
group_by_folder=group_by_folder,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -14895,11 +14915,11 @@ async def create_purchase_order(
invoice_number: typing.Optional[str] = OMIT,
notes: typing.Optional[str] = OMIT,
other_cost: typing.Optional[
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
] = OMIT,
parts: typing.Optional[
typing.Sequence[
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody
CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody
]
] = OMIT,
po_number_prefix: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -14935,9 +14955,9 @@ async def create_purchase_order(
notes : typing.Optional[str]
Free-text notes for the purchase order.

other_cost : typing.Optional[CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta2E1675A5A65TypeRequestBody]
other_cost : typing.Optional[CreatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody]

parts : typing.Optional[typing.Sequence[CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant63E9Febe395ETypeRequestBody]]
parts : typing.Optional[typing.Sequence[CreatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariantfe4658938A0FTypeRequestBody]]
Parts ordered on the purchase order.

po_number_prefix : typing.Optional[str]
Expand Down Expand Up @@ -15049,11 +15069,11 @@ async def update_purchase_order(
notes: typing.Optional[str] = OMIT,
order_status: typing.Optional[EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBodyOrderStatus] = OMIT,
other_cost: typing.Optional[
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody
] = OMIT,
parts: typing.Optional[
typing.Sequence[
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody
UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody
]
] = OMIT,
tax: typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody] = OMIT,
Expand Down Expand Up @@ -15088,9 +15108,9 @@ async def update_purchase_order(
order_status : typing.Optional[EntityPurchaseOrdersServiceUpdatePurchaseOrderRequestBodyOrderStatus]
Current customer-visible status of the purchase order. Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed`

other_cost : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVarianta34Bfd5A4152TypeRequestBody]
other_cost : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderMoneyInputPublicVariantc9366B66E6FcTypeRequestBody]

parts : typing.Optional[typing.Sequence[UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant1A94E81632EaTypeRequestBody]]
parts : typing.Optional[typing.Sequence[UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartInputPublicVariant5E7C0Da15F4CTypeRequestBody]]
Parts ordered on the purchase order.

tax : typing.Optional[UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentInputTypeRequestBody]
Expand Down
Loading
Loading