DeploymentPatchOpPackage¶
- class baseten.client.managementapi.DeploymentPatchOpPackage(*, type='package', action, path, content=None, content_bytes=None)¶
Bases:
BaseModel- Parameters:
type (Annotated[Literal['package'], FieldInfo(annotation=NoneType, required=True, title='Type')])
action (Annotated[Literal['ADD', 'UPDATE', 'REMOVE'] | str, FieldInfo(annotation=NoneType, required=True, title='DeploymentPatchActionV1', description='How this op changes the file.')])
path (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Path', description='File path relative to the bundled packages directory.')])
content (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Content', description='UTF-8 file content. Null for removals and binary files.')])
content_bytes (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Content Bytes', description='Base64-encoded content for binary files.')])
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].