Skip to content

Commit 2377d25

Browse files
committed
SDK regeneration
1 parent e2fbc41 commit 2377d25

File tree

96 files changed

+318
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+318
-318
lines changed

poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/truefoundry_sdk/types/amqp_input_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AmqpInputConfig(UniversalBaseModel):
3131
+sort=2
3232
"""
3333

34-
wait_time_seconds: int = pydantic.Field()
34+
wait_time_seconds: int = pydantic.Field(default=5)
3535
"""
3636
+label=Wait Time Seconds
3737
+usage=Wait timeout for long polling.

src/truefoundry_sdk/types/artifact_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ArtifactManifest(UniversalBaseModel):
4040

4141
type: typing.Literal["artifact-version"] = "artifact-version"
4242
source: Source
43-
step: typing.Optional[int] = pydantic.Field(default=None)
43+
step: typing.Optional[int] = pydantic.Field(default=0)
4444
"""
4545
Step/Epoch number in an iterative training loop the artifact version was created. Generally useful when logging a model version from a MLRepo Run
4646
"""

src/truefoundry_sdk/types/artifacts_cache_volume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ArtifactsCacheVolume(UniversalBaseModel):
1818
+usage=Storage class of the Volume where artifacts will be cached
1919
"""
2020

21-
cache_size: int = pydantic.Field()
21+
cache_size: int = pydantic.Field(default=200)
2222
"""
2323
+label=Cache Size (GB)
2424
+usage=Size of the Volume (in GB) where artifacts will be cached. Should be greater than twice the size of artifacts getting cached

src/truefoundry_sdk/types/async_processor_sidecar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AsyncProcessorSidecar(UniversalBaseModel):
1313
+usage=URL for the processor to invoke
1414
"""
1515

16-
request_timeout: typing.Optional[int] = pydantic.Field(default=None)
16+
request_timeout: typing.Optional[int] = pydantic.Field(default=10)
1717
"""
1818
+label=Request Timeout Seconds
1919
+usage=Timeout for the invoke request in seconds

src/truefoundry_sdk/types/autoshutdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class Autoshutdown(UniversalBaseModel):
10-
wait_time: int = pydantic.Field()
10+
wait_time: int = pydantic.Field(default=300)
1111
"""
1212
+label=Wait Time
1313
+usage=The period to wait after the last received request before scaling the replicas to 0

src/truefoundry_sdk/types/base_autoscaling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class BaseAutoscaling(UniversalBaseModel):
10-
min_replicas: int = pydantic.Field()
10+
min_replicas: int = pydantic.Field(default=1)
1111
"""
1212
+label=Minimum replicas
1313
+usage=Minimum number of replicas to keep available
@@ -21,7 +21,7 @@ class BaseAutoscaling(UniversalBaseModel):
2121
+sort=2
2222
"""
2323

24-
polling_interval: typing.Optional[int] = pydantic.Field(default=None)
24+
polling_interval: typing.Optional[int] = pydantic.Field(default=30)
2525
"""
2626
+label=Polling Interval
2727
+usage=This is the interval to check each trigger on.

src/truefoundry_sdk/types/base_workbench_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BaseWorkbenchInput(UniversalBaseModel):
2222
+message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number
2323
"""
2424

25-
home_directory_size: int = pydantic.Field()
25+
home_directory_size: int = pydantic.Field(default=20)
2626
"""
2727
+label=Home Directory Size in GB (Persistent)
2828
+usage=Size of the home directory for the workbench (Persistent Storage)

src/truefoundry_sdk/types/blue_green.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class BlueGreen(UniversalBaseModel):
1818
+value=blue_green
1919
"""
2020

21-
enable_auto_promotion: typing.Optional[bool] = pydantic.Field(default=None)
21+
enable_auto_promotion: typing.Optional[bool] = pydantic.Field(default=False)
2222
"""
2323
+docs=Promote the new release to handle the complete traffic. A manual promotion would be needed if this is disabled
2424
+label=Auto-promotion
2525
"""
2626

27-
auto_promotion_seconds: typing.Optional[int] = pydantic.Field(default=None)
27+
auto_promotion_seconds: typing.Optional[int] = pydantic.Field(default=30)
2828
"""
2929
+docs=Promote the new release to handle the complete traffic after waiting for these many seconds
3030
+label=Auto-promotion seconds

src/truefoundry_sdk/types/canary_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CanaryStep(UniversalBaseModel):
1616
+placeholder=Weight
1717
"""
1818

19-
pause_duration: typing.Optional[int] = pydantic.Field(default=None)
19+
pause_duration: typing.Optional[int] = pydantic.Field(default=30)
2020
"""
2121
+docs=Duration for which to pause the release. The release process will wait for these seconds before proceeding to the next step.
2222
If this is not set, the step will pause indefinitely on this step

src/truefoundry_sdk/types/cron_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CronMetric(UniversalBaseModel):
5050
```
5151
"""
5252

53-
timezone: str = pydantic.Field()
53+
timezone: str = pydantic.Field(default="UTC")
5454
"""
5555
+usage=Timezone against which the cron schedule will be calculated, e.g. "Asia/Tokyo". Default is machine's local time.
5656
https://docs.truefoundry.com/docs/list-of-supported-timezones

src/truefoundry_sdk/types/docker_file_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class DockerFileBuild(UniversalBaseModel):
1919
+value=dockerfile
2020
"""
2121

22-
dockerfile_path: str = pydantic.Field()
22+
dockerfile_path: str = pydantic.Field(default="./Dockerfile")
2323
"""
2424
+label=Path to Dockerfile
2525
+usage=The file path of the Dockerfile relative to project root path.
2626
"""
2727

28-
build_context_path: str = pydantic.Field()
28+
build_context_path: str = pydantic.Field(default="./")
2929
"""
3030
+label=Path to build context
3131
+usage=Build context path for the Dockerfile relative to project root path.

src/truefoundry_sdk/types/function_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FunctionSchema(UniversalBaseModel):
2626
Parameters schema for the function
2727
"""
2828

29-
strict: typing.Optional[bool] = pydantic.Field(default=None)
29+
strict: typing.Optional[bool] = pydantic.Field(default=False)
3030
"""
3131
Indicates if the function should be called strictly
3232
"""

src/truefoundry_sdk/types/header_match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class HeaderMatch(UniversalBaseModel):
1818
+label=Name
1919
"""
2020

21-
exact_match: str = pydantic.Field()
21+
exact_match: str = pydantic.Field(default="")
2222
"""
2323
+docs=Header value to match on
2424
+label=Value

src/truefoundry_sdk/types/health_probe.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ class HealthProbe(UniversalBaseModel):
1616
"""
1717

1818
config: HttpProbe
19-
initial_delay_seconds: typing.Optional[int] = pydantic.Field(default=None)
19+
initial_delay_seconds: typing.Optional[int] = pydantic.Field(default=0)
2020
"""
2121
+usage=Time to wait after container has started before checking the endpoint
2222
"""
2323

24-
period_seconds: typing.Optional[int] = pydantic.Field(default=None)
24+
period_seconds: typing.Optional[int] = pydantic.Field(default=10)
2525
"""
2626
+usage=How often to check the endpoint
2727
"""
2828

29-
timeout_seconds: typing.Optional[int] = pydantic.Field(default=None)
29+
timeout_seconds: typing.Optional[int] = pydantic.Field(default=1)
3030
"""
3131
+usage=Time to wait for a response from the endpoint before considering it down
3232
"""
3333

34-
success_threshold: typing.Optional[int] = pydantic.Field(default=None)
34+
success_threshold: typing.Optional[int] = pydantic.Field(default=1)
3535
"""
3636
+usage=Number of successful responses from the endpoint before container is considered healthy
3737
"""
3838

39-
failure_threshold: typing.Optional[int] = pydantic.Field(default=None)
39+
failure_threshold: typing.Optional[int] = pydantic.Field(default=3)
4040
"""
4141
+usage=Number of consecutive failures before the container is considered down
4242
"""

src/truefoundry_sdk/types/http_probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class HttpProbe(UniversalBaseModel):
3838
+usage=Host name to connect to, defaults to the pod IP
3939
"""
4040

41-
scheme: typing.Optional[str] = pydantic.Field(default=None)
41+
scheme: typing.Optional[str] = pydantic.Field(default="HTTP")
4242
"""
4343
+sort=5
4444
+usage=Scheme to use for connecting to the host

src/truefoundry_sdk/types/internal_model_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class InternalModelVersion(UniversalBaseModel):
2121
ml_repo_id: str
2222
model_id: str
2323
metrics: typing.Optional[typing.List[Metric]] = None
24-
deployable: typing.Optional[bool] = None
24+
deployable: typing.Optional[bool] = False
2525
artifact_fqn: str
2626
artifact_size: typing.Optional[int] = None
2727

src/truefoundry_sdk/types/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Job(UniversalBaseModel):
4444
+sort=300
4545
"""
4646

47-
trigger_on_deploy: typing.Optional[bool] = pydantic.Field(default=None)
47+
trigger_on_deploy: typing.Optional[bool] = pydantic.Field(default=False)
4848
"""
4949
+docs=Trigger on deploy
5050
+sort=350
@@ -75,7 +75,7 @@ class Job(UniversalBaseModel):
7575
+sort=650
7676
"""
7777

78-
retries: typing.Optional[int] = pydantic.Field(default=None)
78+
retries: typing.Optional[int] = pydantic.Field(default=0)
7979
"""
8080
+label=Retries
8181
+usage=Specify the maximum number of attempts to retry a job before it is marked as failed.

src/truefoundry_sdk/types/job_alert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class JobAlert(UniversalBaseModel):
3939
+uiType=Hidden
4040
"""
4141

42-
on_start: typing.Optional[bool] = pydantic.Field(default=None)
42+
on_start: typing.Optional[bool] = pydantic.Field(default=False)
4343
"""
4444
+label=On Start
4545
+usage=Send an alert when the job starts
4646
+sort=670
4747
"""
4848

49-
on_completion: typing.Optional[bool] = None
50-
on_failure: typing.Optional[bool] = pydantic.Field(default=None)
49+
on_completion: typing.Optional[bool] = False
50+
on_failure: typing.Optional[bool] = pydantic.Field(default=True)
5151
"""
5252
+label=On Failure
5353
+usage=Send an alert when the job fails

src/truefoundry_sdk/types/kafka_input_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ class KafkaInputConfig(UniversalBaseModel):
3939
+sort=3
4040
"""
4141

42-
tls: bool = pydantic.Field()
42+
tls: bool = pydantic.Field(default=True)
4343
"""
4444
+label=TLS
4545
+usage=TLS configuration for SASL authentication
4646
"""
4747

48-
wait_time_seconds: typing.Optional[int] = pydantic.Field(default=None)
48+
wait_time_seconds: typing.Optional[int] = pydantic.Field(default=10)
4949
"""
5050
+label=Wait Time Seconds
5151
+usage=Wait timeout for long polling.

src/truefoundry_sdk/types/kafka_output_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KafkaOutputConfig(UniversalBaseModel):
3232
+sort=2
3333
"""
3434

35-
tls: bool = pydantic.Field()
35+
tls: bool = pydantic.Field(default=True)
3636
"""
3737
+label=TLS
3838
+usage=TLS configuration for SASL authentication

src/truefoundry_sdk/types/local_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ class LocalSource(UniversalBaseModel):
1919
+value=local
2020
"""
2121

22-
project_root_path: str = pydantic.Field()
22+
project_root_path: str = pydantic.Field(default="./")
2323
"""
2424
+usage=Local project root path.
2525
"""
2626

27-
local_build: bool = pydantic.Field()
27+
local_build: bool = pydantic.Field(default=True)
2828
"""
2929
run docker build locally
3030
"""

src/truefoundry_sdk/types/metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Metric(UniversalBaseModel):
1010
key: str
1111
value: typing.Optional[float] = None
1212
timestamp: typing.Optional[int] = None
13-
step: typing.Optional[int] = None
13+
step: typing.Optional[int] = 0
1414

1515
if IS_PYDANTIC_V2:
1616
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2

src/truefoundry_sdk/types/model_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ModelManifest(UniversalBaseModel):
4848
"""
4949

5050
environment: typing.Optional[ModelVersionEnvironment] = None
51-
step: typing.Optional[int] = pydantic.Field(default=None)
51+
step: typing.Optional[int] = pydantic.Field(default=0)
5252
"""
5353
Step/Epoch number in an iterative training loop the model version was created. Generally useful when logging a model version from a MLRepo Run
5454
"""

src/truefoundry_sdk/types/model_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ModelVersion(UniversalBaseModel):
2121
ml_repo_id: str
2222
model_id: str
2323
metrics: typing.Optional[typing.List[Metric]] = None
24-
deployable: typing.Optional[bool] = None
24+
deployable: typing.Optional[bool] = False
2525

2626
if IS_PYDANTIC_V2:
2727
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2

src/truefoundry_sdk/types/nats_input_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class NatsInputConfig(UniversalBaseModel):
4848
+sort=4
4949
"""
5050

51-
wait_time_seconds: int = pydantic.Field()
51+
wait_time_seconds: int = pydantic.Field(default=19)
5252
"""
5353
+label=Wait Time Seconds
5454
+usage=Wait timeout for long polling.

src/truefoundry_sdk/types/nats_user_password_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class NatsUserPasswordAuth(UniversalBaseModel):
1212
+label=NATS User Password Authentication
1313
"""
1414

15-
account_name: str = pydantic.Field()
15+
account_name: str = pydantic.Field(default="$G")
1616
"""
1717
+label=Account Name
1818
+usage=Name of the NATS account

src/truefoundry_sdk/types/notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Notebook(BaseWorkbenchInput):
1919
"""
2020

2121
image: typing.Optional[WorkbenchImage] = None
22-
cull_timeout: typing.Optional[int] = pydantic.Field(default=None)
22+
cull_timeout: typing.Optional[int] = pydantic.Field(default=30)
2323
"""
2424
+label=Stop after (minutes of inactivity)
2525
+usage=Stop the notebook instance after this much time in minutes of inactivity.

src/truefoundry_sdk/types/port.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Port(UniversalBaseModel):
1414
+docs=Describes the ports the service should be exposed to.
1515
"""
1616

17-
port: int = pydantic.Field()
17+
port: int = pydantic.Field(default=80)
1818
"""
1919
+usage=Port number to expose.
2020
"""
@@ -24,7 +24,7 @@ class Port(UniversalBaseModel):
2424
+usage=Protocol for the port.
2525
"""
2626

27-
expose: bool = pydantic.Field()
27+
expose: bool = pydantic.Field(default=True)
2828
"""
2929
+usage=Expose the port
3030
"""

0 commit comments

Comments
 (0)