Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-python-sdk-testing.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Description
A new alias is assigned to an artifact.Examples:
Define an event that triggers whenever the alias “prod” is assigned to any artifact in the collection “my-collection”:Args:
- event_type:
- scope:
- filter:
Methods:
construct
copy
Returns a copy of the model. !!! warning “Deprecated” This method is now deprecated; usemodel_copy instead.
If you need include or exclude, use:
dict
from_orm
json
model_construct
Creates a new instance of theModel class with validated data.
Creates a new model setting __dict__ and __pydantic_fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.
!!! note
model_construct() generally respects the model_config.extra setting on the provided model.
That is, if model_config.extra == 'allow', then all extra passed values are added to the model instance’s __dict__
and __pydantic_extra__ fields. If model_config.extra == 'ignore' (the default), then all extra passed values are ignored.
Because no validation is performed with a call to model_construct(), having model_config.extra == 'forbid' does not result in
an error if extra values are passed, but they will be ignored.
model_copy
!!! abstract “Usage Documentation”model_copy
Returns a copy of the model.
!!! note
The underlying instance’s [__dict__][object.dict] attribute is copied. This
might have unexpected side effects if you store anything in it, on top of the model
fields (e.g. the value of [cached properties][functools.cached_property]).
model_dump
!!! abstract “Usage Documentation”model_dump
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
model_dump_json
!!! abstract “Usage Documentation”model_dump_json
Generates a JSON representation of the model using Pydantic’s to_json method.
model_json_schema
Generates a JSON schema for a model class.model_parametrized_name
Compute the class name for parametrizations of generic classes. This method can be overridden to achieve a custom naming scheme for generic BaseModels.model_post_init
Override this method to perform additional initialization after__init__ and model_construct.
This is useful if you want to do some validation that requires the entire model to be initialized.