benchling_api_client.models.mixture_create module

class MixtureCreate

Bases: object

__init__(entity_registry_id: Union[benchling_api_client.types.Unset, str] = attr_dict['_entity_registry_id'].default, folder_id: Union[benchling_api_client.types.Unset, str] = attr_dict['_folder_id'].default, naming_strategy: Union[benchling_api_client.types.Unset, NamingStrategy] = attr_dict['_naming_strategy'].default, registry_id: Union[benchling_api_client.types.Unset, str] = attr_dict['_registry_id'].default, aliases: Union[benchling_api_client.types.Unset, List[str]] = attr_dict['_aliases'].default, amount: Union[benchling_api_client.types.Unset, str] = attr_dict['_amount'].default, author_ids: Union[benchling_api_client.types.Unset, List[str]] = attr_dict['_author_ids'].default, custom_fields: Union[benchling_api_client.types.Unset, CustomFields] = attr_dict['_custom_fields'].default, fields: Union[benchling_api_client.types.Unset, Fields] = attr_dict['_fields'].default, ingredients: Union[benchling_api_client.types.Unset, List[IngredientWriteParams]] = attr_dict['_ingredients'].default, name: Union[benchling_api_client.types.Unset, str] = attr_dict['_name'].default, schema_id: Union[benchling_api_client.types.Unset, str] = attr_dict['_schema_id'].default, units: Union[benchling_api_client.types.Unset, MixtureMeasurementUnits] = attr_dict['_units'].default) None

Method generated by attrs for class MixtureCreate.

property aliases: List[str]

Aliases to add to the mixture

property amount: str

The positive numerical amount value of this mixture in string format (to preserve full precision). Pair with units. Supports scientific notation (1.23e4).

property author_ids: List[str]

IDs of users to set as the mixture’s authors.

property custom_fields: CustomFields
property entity_registry_id: str
property fields: Fields
property folder_id: str

ID of the folder that the entity is moved into

classmethod from_dict(src_dict: Dict[str, Any]) benchling_api_client.models.mixture_create.T
property ingredients: List[IngredientWriteParams]

Desired final state for the ingredients on this mixture. Each ingredient you specify will be matched with the existing ingredients on the mixture based on the component entity, and Benchling will create, update, or delete this mixture’s ingredients so that the final state of this mixture’s ingredients matches your request. Benchling will recognize that any ingredients you specify that match ingredients on the parent mixture (based on component entity) are inherited. This can be seen on the returned ingredients[i].hasParent attribute.

property name: str
property naming_strategy: NamingStrategy

Specifies the behavior for automatically generated names when registering an entity. - NEW_IDS: Generate new registry IDs - IDS_FROM_NAMES: Generate registry IDs based on entity names - DELETE_NAMES: Generate new registry IDs and replace name with registry ID - SET_FROM_NAME_PARTS: Generate new registry IDs, rename according to name template, and keep old name as alias - REPLACE_NAMES_FROM_PARTS: Generate new registry IDs, and replace name according to name template - KEEP_NAMES: Keep existing entity names as registry IDs - REPLACE_ID_AND_NAME_FROM_PARTS: Generate registry IDs and names according to name template

property registry_id: str

Registry ID into which entity should be registered. this is the ID of the registry which was configured for a particular organization To get available registryIds, use the [/registries endpoint](#/Registry/listRegistries)

Required in order for entities to be created directly in the registry.

property schema_id: str
to_dict() Dict[str, Any]
property units: MixtureMeasurementUnits