Skip to content
Draft
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
6 changes: 3 additions & 3 deletions poetry.lock

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

6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -34481,23 +34481,23 @@ client.projects.metrics.custom.update_lambda(
<dl>
<dd>

**code:** `str`
**code:** `str` — The Python code for the custom metric function.

</dd>
</dl>

<dl>
<dd>

**region:** `typing.Optional[str]`
**region:** `typing.Optional[str]` — The AWS region for the Lambda function. Uses default if not provided.

</dd>
</dl>

<dl>
<dd>

**role:** `typing.Optional[str]`
**role:** `typing.Optional[str]` — The AWS IAM role ARN for the Lambda function. Uses default if not provided.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/label_studio_sdk/projects/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from . import custom
from .custom import GetLambdaCustomResponse
from .custom import GetLambdaCustomResponse, GetLambdaCustomResponseStatus

__all__ = ["GetLambdaCustomResponse", "custom"]
__all__ = ["GetLambdaCustomResponse", "GetLambdaCustomResponseStatus", "custom"]
4 changes: 2 additions & 2 deletions src/label_studio_sdk/projects/metrics/custom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

from .types import GetLambdaCustomResponse
from .types import GetLambdaCustomResponse, GetLambdaCustomResponseStatus

__all__ = ["GetLambdaCustomResponse"]
__all__ = ["GetLambdaCustomResponse", "GetLambdaCustomResponseStatus"]
10 changes: 8 additions & 2 deletions src/label_studio_sdk/projects/metrics/custom/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_lambda(
Returns
-------
GetLambdaCustomResponse
Lambda code
Lambda code and deployment status

Examples
--------
Expand Down Expand Up @@ -96,10 +96,13 @@ def update_lambda(
id : int

code : str
The Python code for the custom metric function.

region : typing.Optional[str]
The AWS region for the Lambda function. Uses default if not provided.

role : typing.Optional[str]
The AWS IAM role ARN for the Lambda function. Uses default if not provided.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -308,7 +311,7 @@ async def get_lambda(
Returns
-------
GetLambdaCustomResponse
Lambda code
Lambda code and deployment status

Examples
--------
Expand Down Expand Up @@ -371,10 +374,13 @@ async def update_lambda(
id : int

code : str
The Python code for the custom metric function.

region : typing.Optional[str]
The AWS region for the Lambda function. Uses default if not provided.

role : typing.Optional[str]
The AWS IAM role ARN for the Lambda function. Uses default if not provided.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from .get_lambda_custom_response import GetLambdaCustomResponse
from .get_lambda_custom_response_status import GetLambdaCustomResponseStatus

__all__ = ["GetLambdaCustomResponse"]
__all__ = ["GetLambdaCustomResponse", "GetLambdaCustomResponseStatus"]
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# This file was auto-generated by Fern from our API Definition.

from .....core.unchecked_base_model import UncheckedBaseModel
from .get_lambda_custom_response_status import GetLambdaCustomResponseStatus
import pydantic
from .....core.pydantic_utilities import IS_PYDANTIC_V2
import typing
import pydantic


class GetLambdaCustomResponse(UncheckedBaseModel):
code: str
status: GetLambdaCustomResponseStatus = pydantic.Field()
"""
Deployment status of the Lambda function.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing

GetLambdaCustomResponseStatus = typing.Union[
typing.Literal["NotDeployed", "Active", "Pending", "Inactive", "Failed", "NotFound", "Error"], typing.Any
]
Loading