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": "13.19.0"
"sdkVersion": "13.20.0"
}
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 = "13.19.0"
version = "13.20.0"
description = ""
readme = "README.md"
authors = []
Expand Down
12 changes: 10 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4815,7 +4815,7 @@ client.beta_ap_is.delete_hub_route_template(
<dl>
<dd>

Gets work order templates by id. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

Expand Down Expand Up @@ -4858,7 +4858,15 @@ client.beta_ap_is.get_work_order_templates()
<dl>
<dd>

**ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — The work order template IDs to look up. Up to 100 ids. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
**ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.

</dd>
</dl>

<dl>
<dd>

**after:** `typing.Optional[str]` — If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

</dd>
</dl>
Expand Down
22 changes: 16 additions & 6 deletions src/samsara/beta_ap_is/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2659,10 +2659,11 @@ def get_work_order_templates(
self,
*,
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
after: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> WorkOrdersGetWorkOrderTemplatesResponseBody:
"""
Gets work order templates by id. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

Expand All @@ -2674,7 +2675,10 @@ def get_work_order_templates(
Parameters
----------
ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
The work order template IDs to look up. Up to 100 ids. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.

after : typing.Optional[str]
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -2693,7 +2697,7 @@ def get_work_order_templates(
)
client.beta_ap_is.get_work_order_templates()
"""
_response = self._raw_client.get_work_order_templates(ids=ids, request_options=request_options)
_response = self._raw_client.get_work_order_templates(ids=ids, after=after, request_options=request_options)
return _response.data

def get_places(
Expand Down Expand Up @@ -7612,10 +7616,11 @@ async def get_work_order_templates(
self,
*,
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
after: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> WorkOrdersGetWorkOrderTemplatesResponseBody:
"""
Gets work order templates by id. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

Expand All @@ -7627,7 +7632,10 @@ async def get_work_order_templates(
Parameters
----------
ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
The work order template IDs to look up. Up to 100 ids. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.

after : typing.Optional[str]
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -7654,7 +7662,9 @@ async def main() -> None:

asyncio.run(main())
"""
_response = await self._raw_client.get_work_order_templates(ids=ids, request_options=request_options)
_response = await self._raw_client.get_work_order_templates(
ids=ids, after=after, request_options=request_options
)
return _response.data

async def get_places(
Expand Down
18 changes: 14 additions & 4 deletions src/samsara/beta_ap_is/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7170,10 +7170,11 @@ def get_work_order_templates(
self,
*,
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
after: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[WorkOrdersGetWorkOrderTemplatesResponseBody]:
"""
Gets work order templates by id. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

Expand All @@ -7185,7 +7186,10 @@ def get_work_order_templates(
Parameters
----------
ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
The work order template IDs to look up. Up to 100 ids. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.

after : typing.Optional[str]
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -7200,6 +7204,7 @@ def get_work_order_templates(
method="GET",
params={
"ids": ids,
"after": after,
},
request_options=request_options,
)
Expand Down Expand Up @@ -20183,10 +20188,11 @@ async def get_work_order_templates(
self,
*,
ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
after: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[WorkOrdersGetWorkOrderTemplatesResponseBody]:
"""
Gets work order templates by id. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

Expand All @@ -20198,7 +20204,10 @@ async def get_work_order_templates(
Parameters
----------
ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
The work order template IDs to look up. Up to 100 ids. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.
Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response.

after : typing.Optional[str]
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -20213,6 +20222,7 @@ async def get_work_order_templates(
method="GET",
params={
"ids": ids,
"after": after,
},
request_options=request_options,
)
Expand Down
4 changes: 2 additions & 2 deletions src/samsara/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "samsara-api/13.19.0",
"User-Agent": "samsara-api/13.20.0",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "samsara-api",
"X-Fern-SDK-Version": "13.19.0",
"X-Fern-SDK-Version": "13.20.0",
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Bearer {self._get_token()}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .goa_pagination_response_response_body import GoaPaginationResponseResponseBody
from .work_order_template_object_response_body import WorkOrderTemplateObjectResponseBody


Expand All @@ -13,6 +14,8 @@ class WorkOrdersGetWorkOrderTemplatesResponseBody(UniversalBaseModel):
Work order templates.
"""

pagination: GoaPaginationResponseResponseBody

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
Expand Down
2 changes: 1 addition & 1 deletion wiremock/wiremock-mappings.json

Large diffs are not rendered by default.

Loading