kittycad.models.modeling_app_subscription_tier
Classes
|
A subscription tier we offer for the Modeling App. |
- class kittycad.models.modeling_app_subscription_tier.ModelingAppSubscriptionTier(**data)[source][source]
A subscription tier we offer for the Modeling App.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- __annotations__ = {'__class_vars__': 'ClassVar[set[str]]', '__private_attributes__': 'ClassVar[Dict[str, ModelPrivateAttr]]', '__pydantic_complete__': 'ClassVar[bool]', '__pydantic_computed_fields__': 'ClassVar[Dict[str, ComputedFieldInfo]]', '__pydantic_core_schema__': 'ClassVar[CoreSchema]', '__pydantic_custom_init__': 'ClassVar[bool]', '__pydantic_decorators__': 'ClassVar[_decorators.DecoratorInfos]', '__pydantic_extra__': 'dict[str, Any] | None', '__pydantic_fields__': 'ClassVar[Dict[str, FieldInfo]]', '__pydantic_fields_set__': 'set[str]', '__pydantic_generic_metadata__': 'ClassVar[_generics.PydanticGenericMetadata]', '__pydantic_parent_namespace__': 'ClassVar[Dict[str, Any] | None]', '__pydantic_post_init__': "ClassVar[None | Literal['model_post_init']]", '__pydantic_private__': 'dict[str, Any] | None', '__pydantic_root_model__': 'ClassVar[bool]', '__pydantic_serializer__': 'ClassVar[SchemaSerializer]', '__pydantic_validator__': 'ClassVar[SchemaValidator | PluggableSchemaValidator]', '__signature__': 'ClassVar[Signature]', 'annual_discount': typing.Optional[int], 'description': <class 'str'>, 'features': typing.Optional[typing.List[kittycad.models.subscription_tier_feature.SubscriptionTierFeature]], 'model_computed_fields': 'ClassVar[dict[str, ComputedFieldInfo]]', 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[dict[str, FieldInfo]]', 'name': <enum 'ModelingAppSubscriptionTierName'>, 'pay_as_you_go_credits': <class 'float'>, 'price': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'share_links': typing.Optional[typing.List[kittycad.models.modeling_app_share_links.ModelingAppShareLinks]], 'support_tier': <enum 'SupportTier'>, 'training_data_behavior': <enum 'SubscriptionTrainingDataBehavior'>, 'type': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'zoo_tools_included': typing.Optional[typing.List[kittycad.models.zoo_tool.ZooTool]]}[source]
- classmethod __class_getitem__(typevar_values)[source]
- Return type:
type
[BaseModel
] |PydanticRecursiveRef
- __class_vars__: ClassVar[set[str]] = {}[source]
The names of the class variables defined on the model.
- classmethod __get_pydantic_core_schema__(source, handler, /)[source]
Hook into generating the model’s CoreSchema.
- Parameters:
source (
type
[BaseModel
]) – The class we are generating a schema for. This will generally be the same as thecls
argument if this is a classmethod.handler (
GetCoreSchemaHandler
) – A callable that calls into Pydantic’s internal CoreSchema generation logic.
- Return type:
Union
[InvalidSchema
,AnySchema
,NoneSchema
,BoolSchema
,IntSchema
,FloatSchema
,DecimalSchema
,StringSchema
,BytesSchema
,DateSchema
,TimeSchema
,DatetimeSchema
,TimedeltaSchema
,LiteralSchema
,EnumSchema
,IsInstanceSchema
,IsSubclassSchema
,CallableSchema
,ListSchema
,TupleSchema
,SetSchema
,FrozenSetSchema
,GeneratorSchema
,DictSchema
,AfterValidatorFunctionSchema
,BeforeValidatorFunctionSchema
,WrapValidatorFunctionSchema
,PlainValidatorFunctionSchema
,WithDefaultSchema
,NullableSchema
,UnionSchema
,TaggedUnionSchema
,ChainSchema
,LaxOrStrictSchema
,JsonOrPythonSchema
,TypedDictSchema
,ModelFieldsSchema
,ModelSchema
,DataclassArgsSchema
,DataclassSchema
,ArgumentsSchema
,CallSchema
,CustomErrorSchema
,JsonSchema
,UrlSchema
,MultiHostUrlSchema
,DefinitionsSchema
,DefinitionReferenceSchema
,UuidSchema
,ComplexSchema
]- Returns:
A
pydantic-core
CoreSchema
.
- classmethod __get_pydantic_json_schema__(core_schema, handler, /)[source]
Hook into generating the model’s JSON schema.
- Parameters:
core_schema (
Union
[InvalidSchema
,AnySchema
,NoneSchema
,BoolSchema
,IntSchema
,FloatSchema
,DecimalSchema
,StringSchema
,BytesSchema
,DateSchema
,TimeSchema
,DatetimeSchema
,TimedeltaSchema
,LiteralSchema
,EnumSchema
,IsInstanceSchema
,IsSubclassSchema
,CallableSchema
,ListSchema
,TupleSchema
,SetSchema
,FrozenSetSchema
,GeneratorSchema
,DictSchema
,AfterValidatorFunctionSchema
,BeforeValidatorFunctionSchema
,WrapValidatorFunctionSchema
,PlainValidatorFunctionSchema
,WithDefaultSchema
,NullableSchema
,UnionSchema
,TaggedUnionSchema
,ChainSchema
,LaxOrStrictSchema
,JsonOrPythonSchema
,TypedDictSchema
,ModelFieldsSchema
,ModelSchema
,DataclassArgsSchema
,DataclassSchema
,ArgumentsSchema
,CallSchema
,CustomErrorSchema
,JsonSchema
,UrlSchema
,MultiHostUrlSchema
,DefinitionsSchema
,DefinitionReferenceSchema
,UuidSchema
,ComplexSchema
]) – Apydantic-core
CoreSchema. You can ignore this argument and call the handler with a new CoreSchema, wrap this CoreSchema ({'type': 'nullable', 'schema': current_schema}
), or just call the handler with the original schema.handler (
GetJsonSchemaHandler
) – Call into Pydantic’s internal JSON schema generation. This will raise apydantic.errors.PydanticInvalidForJsonSchema
if JSON schema generation fails. Since this gets called byBaseModel.model_json_schema
you can override theschema_generator
argument to that function to change JSON schema generation globally for a type.
- Return type:
- Returns:
A JSON schema, as a Python object.
- __init__(**data)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.
- __pretty__(fmt, **kwargs)[source]
Used by devtools (https://python-devtools.helpmanual.io/) to pretty print objects.
- __private_attributes__: ClassVar[Dict[str, ModelPrivateAttr]] = {}[source]
Metadata about the private attributes of the model.
- __pydantic_complete__: ClassVar[bool] = True[source]
Whether model building is completed, or if there are still undefined fields.
- __pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}[source]
A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_core_schema__: ClassVar[CoreSchema] = {'definitions': [{'cls': <enum 'PlanInterval'>, 'members': [PlanInterval.DAY, PlanInterval.MONTH, PlanInterval.WEEK, PlanInterval.YEAR], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.plan_interval.PlanInterval:94613475378704', 'sub_type': 'str', 'type': 'enum'}], 'schema': {'cls': <class 'kittycad.models.modeling_app_subscription_tier.ModelingAppSubscriptionTier'>, 'config': {'title': 'ModelingAppSubscriptionTier'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_app_subscription_tier.ModelingAppSubscriptionTier'>>]}, 'ref': 'kittycad.models.modeling_app_subscription_tier.ModelingAppSubscriptionTier:94613475465104', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'annual_discount': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'int'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'description': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'features': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'items_schema': {'cls': <class 'kittycad.models.subscription_tier_feature.SubscriptionTierFeature'>, 'config': {'title': 'SubscriptionTierFeature'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_feature.SubscriptionTierFeature'>>]}, 'ref': 'kittycad.models.subscription_tier_feature.SubscriptionTierFeature:94613475416464', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'info': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'SubscriptionTierFeature', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'list'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {}, 'schema': {'cls': <enum 'ModelingAppSubscriptionTierName'>, 'members': [ModelingAppSubscriptionTierName.FREE, ModelingAppSubscriptionTierName.PRO, ModelingAppSubscriptionTierName.TEAM, ModelingAppSubscriptionTierName.ENTERPRISE], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.modeling_app_subscription_tier_name.ModelingAppSubscriptionTierName:94613475413264', 'sub_type': 'str', 'type': 'enum'}, 'type': 'model-field'}, 'pay_as_you_go_credits': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'price': {'metadata': {}, 'schema': {'cls': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'config': {'title': "RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]"}, 'custom_init': False, 'generic_origin': <class 'pydantic.root_model.RootModel'>, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydantic.root_model.RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>>]}, 'ref': "pydantic.root_model.RootModel:94613489228048[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]:140435633373104]", 'root_model': True, 'schema': {'choices': {'enterprise': {'cls': <class 'kittycad.models.subscription_tier_price.OptionEnterprise'>, 'config': {'title': 'OptionEnterprise'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_price.OptionEnterprise'>>]}, 'ref': 'kittycad.models.subscription_tier_price.OptionEnterprise:94613475370096', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'enterprise', 'schema': {'expected': ['enterprise'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionEnterprise', 'type': 'model-fields'}, 'type': 'model'}, 'flat': {'cls': <class 'kittycad.models.subscription_tier_price.OptionFlat'>, 'config': {'title': 'OptionFlat'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_price.OptionFlat'>>]}, 'ref': 'kittycad.models.subscription_tier_price.OptionFlat:94613475352720', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'interval': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.plan_interval.PlanInterval:94613475378704', 'type': 'definition-ref'}, 'type': 'model-field'}, 'price': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'flat', 'schema': {'expected': ['flat'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionFlat', 'type': 'model-fields'}, 'type': 'model'}, 'per_user': {'cls': <class 'kittycad.models.subscription_tier_price.OptionPerUser'>, 'config': {'title': 'OptionPerUser'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_price.OptionPerUser'>>]}, 'ref': 'kittycad.models.subscription_tier_price.OptionPerUser:94613475360896', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'interval': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.plan_interval.PlanInterval:94613475378704', 'type': 'definition-ref'}, 'type': 'model-field'}, 'price': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'per_user', 'schema': {'expected': ['per_user'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionPerUser', 'type': 'model-fields'}, 'type': 'model'}}, 'discriminator': 'type', 'from_attributes': True, 'metadata': {}, 'strict': False, 'type': 'tagged-union'}, 'type': 'model'}, 'type': 'model-field'}, 'share_links': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'items_schema': {'cls': <enum 'ModelingAppShareLinks'>, 'members': [ModelingAppShareLinks.PUBLIC, ModelingAppShareLinks.PASSWORD_PROTECTED, ModelingAppShareLinks.ORGANIZATION_ONLY], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.modeling_app_share_links.ModelingAppShareLinks:94613475410416', 'sub_type': 'str', 'type': 'enum'}, 'type': 'list'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'support_tier': {'metadata': {}, 'schema': {'cls': <enum 'SupportTier'>, 'members': [SupportTier.COMMUNITY, SupportTier.STANDARD, SupportTier.PREMIUM, SupportTier.PRIORITY], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.support_tier.SupportTier:94613475459168', 'sub_type': 'str', 'type': 'enum'}, 'type': 'model-field'}, 'training_data_behavior': {'metadata': {}, 'schema': {'cls': <enum 'SubscriptionTrainingDataBehavior'>, 'members': [SubscriptionTrainingDataBehavior.ALWAYS, SubscriptionTrainingDataBehavior.DEFAULT_ON, SubscriptionTrainingDataBehavior.DEFAULT_OFF], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.subscription_training_data_behavior.SubscriptionTrainingDataBehavior:94613475458176', 'sub_type': 'str', 'type': 'enum'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'cls': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'config': {'title': "RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]"}, 'custom_init': False, 'generic_origin': <class 'pydantic.root_model.RootModel'>, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydantic.root_model.RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>>]}, 'ref': "pydantic.root_model.RootModel:94613489228048[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]:140435632751872]", 'root_model': True, 'schema': {'choices': {'individual': {'cls': <class 'kittycad.models.subscription_tier_type.OptionIndividual'>, 'config': {'title': 'OptionIndividual'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_type.OptionIndividual'>>]}, 'ref': 'kittycad.models.subscription_tier_type.OptionIndividual:94613480419424', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'individual', 'schema': {'expected': ['individual'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionIndividual', 'type': 'model-fields'}, 'type': 'model'}, 'organization': {'cls': <class 'kittycad.models.subscription_tier_type.OptionOrganization'>, 'config': {'title': 'OptionOrganization'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.subscription_tier_type.OptionOrganization'>>]}, 'ref': 'kittycad.models.subscription_tier_type.OptionOrganization:94613475430592', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'saml_sso': {'metadata': {}, 'schema': {'type': 'bool'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'organization', 'schema': {'expected': ['organization'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionOrganization', 'type': 'model-fields'}, 'type': 'model'}}, 'discriminator': 'type', 'from_attributes': True, 'metadata': {}, 'strict': False, 'type': 'tagged-union'}, 'type': 'model'}, 'type': 'model-field'}, 'zoo_tools_included': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'items_schema': {'cls': <enum 'ZooTool'>, 'members': [ZooTool.MODELING_APP, ZooTool.TEXT_TO_CAD, ZooTool.DIFF_CHROME_EXTENSION], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.zoo_tool.ZooTool:94613475463328', 'sub_type': 'str', 'type': 'enum'}, 'type': 'list'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'ModelingAppSubscriptionTier', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'definitions'}[source]
The core schema of the model.
- __pydantic_custom_init__: ClassVar[bool] = False[source]
Whether the model has a custom
__init__
method.
- __pydantic_decorators__: ClassVar[_decorators.DecoratorInfos] = DecoratorInfos(validators={}, field_validators={}, root_validators={}, field_serializers={}, model_serializers={}, model_validators={}, computed_fields={})[source]
Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.
- __pydantic_extra__: dict[str, Any] | None[source]
A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.
- __pydantic_fields__: ClassVar[Dict[str, FieldInfo]] = {'annual_discount': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'description': FieldInfo(annotation=str, required=True), 'features': FieldInfo(annotation=Union[List[SubscriptionTierFeature], NoneType], required=False, default=None), 'name': FieldInfo(annotation=ModelingAppSubscriptionTierName, required=True), 'pay_as_you_go_credits': FieldInfo(annotation=float, required=True), 'price': FieldInfo(annotation=RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]], required=True), 'share_links': FieldInfo(annotation=Union[List[ModelingAppShareLinks], NoneType], required=False, default=None), 'support_tier': FieldInfo(annotation=SupportTier, required=True), 'training_data_behavior': FieldInfo(annotation=SubscriptionTrainingDataBehavior, required=True), 'type': FieldInfo(annotation=RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]], required=True), 'zoo_tools_included': FieldInfo(annotation=Union[List[ZooTool], NoneType], required=False, default=None)}[source]
A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. This replacesModel.__fields__
from Pydantic V1.
- __pydantic_generic_metadata__: ClassVar[_generics.PydanticGenericMetadata] = {'args': (), 'origin': None, 'parameters': ()}[source]
Metadata for generic models; contains data used for a similar purpose to __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
- classmethod __pydantic_init_subclass__(**kwargs)[source]
This is intended to behave just like
__init_subclass__
, but is called byModelMetaclass
only after the class is actually fully initialized. In particular, attributes likemodel_fields
will be present when this is called.This is necessary because
__init_subclass__
will always be called bytype.__new__
, and it would require a prohibitively large refactor to theModelMetaclass
to ensure thattype.__new__
was called in such a manner that the class would already be sufficiently initialized.This will receive the same
kwargs
that would be passed to the standard__init_subclass__
, namely, any kwargs passed to the class definition that aren’t used internally by pydantic.
- __pydantic_parent_namespace__: ClassVar[Dict[str, Any] | None] = None[source]
Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__: ClassVar[None | Literal['model_post_init']] = None[source]
The name of the post-init method for the model, if defined.
- __pydantic_private__: dict[str, Any] | None[source]
Values of private attributes set on the model instance.
- __pydantic_root_model__: ClassVar[bool] = False[source]
Whether the model is a [
RootModel
][pydantic.root_model.RootModel].
- __pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x0000560cea989790, ), serializer: Fields( GeneralFieldsSerializer { fields: { "description": SerField { key_py: Py( 0x00007fb9baff86f0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, "share_links": SerField { key_py: Py( 0x00007fb9b75fa870, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9bbd47100, ), ), serializer: Nullable( NullableSerializer { serializer: List( ListSerializer { item_serializer: Enum( EnumSerializer { class: Py( 0x0000560cea97c1f0, ), serializer: Some( Str( StrSerializer, ), ), }, ), filter: SchemaFilter { include: None, exclude: None, }, name: "list[enum]", }, ), }, ), }, ), ), required: true, }, "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( Model( ModelSerializer { class: Py( 0x0000560cea983e30, ), serializer: TaggedUnion( TaggedUnionSerializer { discriminator: LookupKey( Simple { key: "type", py_key: Py( 0x00007fb9bbe3c5a0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9bbe3c5a0, ), ), ], ), }, ), lookup: { "individual": 0, "organization": 1, }, choices: [ Model( ModelSerializer { class: Py( 0x0000560ceae43060, ), serializer: Fields( GeneralFieldsSerializer { fields: { "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9b75fa270, ), ), serializer: Literal( LiteralSerializer { expected_int: {}, expected_str: { "individual", }, expected_py: None, name: "literal['individual']", }, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 1, }, ), has_extra: false, root_model: false, name: "OptionIndividual", }, ), Model( ModelSerializer { class: Py( 0x0000560cea9810c0, ), serializer: Fields( GeneralFieldsSerializer { fields: { "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9bab9aaf0, ), ), serializer: Literal( LiteralSerializer { expected_int: {}, expected_str: { "organization", }, expected_py: None, name: "literal['organization']", }, ), }, ), ), required: true, }, "saml_sso": SerField { key_py: Py( 0x00007fb9b75fa170, ), alias: None, alias_py: None, serializer: Some( Bool( BoolSerializer, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 2, }, ), has_extra: false, root_model: false, name: "OptionOrganization", }, ), ], name: "TaggedUnion[OptionIndividual, OptionOrganization]", }, ), has_extra: false, root_model: true, name: "RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]", }, ), ), required: true, }, "training_data_behavior": SerField { key_py: Py( 0x00007fb9b75fa8f0, ), alias: None, alias_py: None, serializer: Some( Enum( EnumSerializer { class: Py( 0x0000560cea987c80, ), serializer: Some( Str( StrSerializer, ), ), }, ), ), required: true, }, "support_tier": SerField { key_py: Py( 0x00007fb9b81ad730, ), alias: None, alias_py: None, serializer: Some( Enum( EnumSerializer { class: Py( 0x0000560cea988060, ), serializer: Some( Str( StrSerializer, ), ), }, ), ), required: true, }, "name": SerField { key_py: Py( 0x00007fb9bbe3a388, ), alias: None, alias_py: None, serializer: Some( Enum( EnumSerializer { class: Py( 0x0000560cea97cd10, ), serializer: Some( Str( StrSerializer, ), ), }, ), ), required: true, }, "features": SerField { key_py: Py( 0x00007fb9b8dd8c30, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9bbd47100, ), ), serializer: Nullable( NullableSerializer { serializer: List( ListSerializer { item_serializer: Model( ModelSerializer { class: Py( 0x0000560cea97d990, ), serializer: Fields( GeneralFieldsSerializer { fields: { "info": SerField { key_py: Py( 0x00007fb9bbe19820, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 1, }, ), has_extra: false, root_model: false, name: "SubscriptionTierFeature", }, ), filter: SchemaFilter { include: None, exclude: None, }, name: "list[SubscriptionTierFeature]", }, ), }, ), }, ), ), required: true, }, "pay_as_you_go_credits": SerField { key_py: Py( 0x00007fb9b75fa7f0, ), alias: None, alias_py: None, serializer: Some( Float( FloatSerializer { inf_nan_mode: Null, }, ), ), required: true, }, "price": SerField { key_py: Py( 0x00007fb9b819c7b0, ), alias: None, alias_py: None, serializer: Some( Model( ModelSerializer { class: Py( 0x0000560cea976200, ), serializer: TaggedUnion( TaggedUnionSerializer { discriminator: LookupKey( Simple { key: "type", py_key: Py( 0x00007fb9bbe3c5a0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9bbe3c5a0, ), ), ], ), }, ), lookup: { "enterprise": 2, "flat": 0, "per_user": 1, }, choices: [ Model( ModelSerializer { class: Py( 0x0000560cea96e090, ), serializer: Fields( GeneralFieldsSerializer { fields: { "interval": SerField { key_py: Py( 0x00007fb9baefdaf0, ), alias: None, alias_py: None, serializer: Some( Recursive( DefinitionRefSerializer { definition: "...", retry_with_lax_check: false, }, ), ), required: true, }, "price": SerField { key_py: Py( 0x00007fb9b819c7b0, ), alias: None, alias_py: None, serializer: Some( Float( FloatSerializer { inf_nan_mode: Null, }, ), ), required: true, }, "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9ba347030, ), ), serializer: Literal( LiteralSerializer { expected_int: {}, expected_str: { "flat", }, expected_py: None, name: "literal['flat']", }, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 3, }, ), has_extra: false, root_model: false, name: "OptionFlat", }, ), Model( ModelSerializer { class: Py( 0x0000560cea970080, ), serializer: Fields( GeneralFieldsSerializer { fields: { "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9b75f0a30, ), ), serializer: Literal( LiteralSerializer { expected_int: {}, expected_str: { "per_user", }, expected_py: None, name: "literal['per_user']", }, ), }, ), ), required: true, }, "price": SerField { key_py: Py( 0x00007fb9b819c7b0, ), alias: None, alias_py: None, serializer: Some( Float( FloatSerializer { inf_nan_mode: Null, }, ), ), required: true, }, "interval": SerField { key_py: Py( 0x00007fb9baefdaf0, ), alias: None, alias_py: None, serializer: Some( Recursive( DefinitionRefSerializer { definition: "...", retry_with_lax_check: false, }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 3, }, ), has_extra: false, root_model: false, name: "OptionPerUser", }, ), Model( ModelSerializer { class: Py( 0x0000560cea972470, ), serializer: Fields( GeneralFieldsSerializer { fields: { "type": SerField { key_py: Py( 0x00007fb9bbe3c5a0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9b75f0b70, ), ), serializer: Literal( LiteralSerializer { expected_int: {}, expected_str: { "enterprise", }, expected_py: None, name: "literal['enterprise']", }, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 1, }, ), has_extra: false, root_model: false, name: "OptionEnterprise", }, ), ], name: "TaggedUnion[OptionFlat, OptionPerUser, OptionEnterprise]", }, ), has_extra: false, root_model: true, name: "RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]", }, ), ), required: true, }, "zoo_tools_included": SerField { key_py: Py( 0x00007fb9b75fa9b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9bbd47100, ), ), serializer: Nullable( NullableSerializer { serializer: List( ListSerializer { item_serializer: Enum( EnumSerializer { class: Py( 0x0000560cea9890a0, ), serializer: Some( Str( StrSerializer, ), ), }, ), filter: SchemaFilter { include: None, exclude: None, }, name: "list[enum]", }, ), }, ), }, ), ), required: true, }, "annual_discount": SerField { key_py: Py( 0x00007fb9b75f86b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fb9bbd47100, ), ), serializer: Nullable( NullableSerializer { serializer: Int( IntSerializer, ), }, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 11, }, ), has_extra: false, root_model: false, name: "ModelingAppSubscriptionTier", }, ), definitions=[Enum(EnumSerializer { class: Py(0x560cea974610), serializer: Some(Str(StrSerializer)) })])[source]
The
pydantic-core
SchemaSerializer
used to dump instances of the model.
- __pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="ModelingAppSubscriptionTier", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "annual_discount", lookup_key: Simple { key: "annual_discount", py_key: Py( 0x00007fb9b75a32f0, ), path: LookupPath( [ S( "annual_discount", Py( 0x00007fb9b75a3230, ), ), ], ), }, name_py: Py( 0x00007fb9b75f86b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9bbd47100, ), ), on_error: Raise, validator: Nullable( NullableValidator { validator: Int( IntValidator { strict: false, }, ), name: "nullable[int]", }, ), validate_default: false, copy_default: false, name: "default[nullable[int]]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, Field { name: "description", lookup_key: Simple { key: "description", py_key: Py( 0x00007fb9b75a3270, ), path: LookupPath( [ S( "description", Py( 0x00007fb9b75a31f0, ), ), ], ), }, name_py: Py( 0x00007fb9baff86f0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, Field { name: "features", lookup_key: Simple { key: "features", py_key: Py( 0x00007fb9b75a31b0, ), path: LookupPath( [ S( "features", Py( 0x00007fb9b75a3170, ), ), ], ), }, name_py: Py( 0x00007fb9b8dd8c30, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9bbd47100, ), ), on_error: Raise, validator: Nullable( NullableValidator { validator: List( ListValidator { strict: false, item_validator: Some( Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "info", lookup_key: Simple { key: "info", py_key: Py( 0x00007fb9b8011590, ), path: LookupPath( [ S( "info", Py( 0x00007fb9b80117a0, ), ), ], ), }, name_py: Py( 0x00007fb9bbe19820, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, ], model_name: "SubscriptionTierFeature", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea97d990, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "SubscriptionTierFeature", }, ), ), min_length: None, max_length: None, name: OnceLock( "list[SubscriptionTierFeature]", ), fail_fast: false, }, ), name: "nullable[list[SubscriptionTierFeature]]", }, ), validate_default: false, copy_default: false, name: "default[nullable[list[SubscriptionTierFeature]]]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, Field { name: "name", lookup_key: Simple { key: "name", py_key: Py( 0x00007fb9b8011740, ), path: LookupPath( [ S( "name", Py( 0x00007fb9b8011560, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3a388, ), validator: StrEnum( EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py( 0x0000560cea97cd10, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "enterprise": 3, "team": 2, "pro": 1, "free": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a3140, ), ), values: [ Py( 0x00007fb9b7649cd0, ), Py( 0x00007fb9b7649d30, ), Py( 0x00007fb9b7649d90, ), Py( 0x00007fb9b7649df0, ), ], }, missing: None, expected_repr: "'free', 'pro', 'team' or 'enterprise'", strict: false, class_repr: "ModelingAppSubscriptionTierName", name: "str-enum[ModelingAppSubscriptionTierName]", }, ), frozen: false, }, Field { name: "pay_as_you_go_credits", lookup_key: Simple { key: "pay_as_you_go_credits", py_key: Py( 0x00007fb9b75a30f0, ), path: LookupPath( [ S( "pay_as_you_go_credits", Py( 0x00007fb9b75a30b0, ), ), ], ), }, name_py: Py( 0x00007fb9b75fa7f0, ), validator: Float( FloatValidator { strict: false, allow_inf_nan: true, }, ), frozen: false, }, Field { name: "price", lookup_key: Simple { key: "price", py_key: Py( 0x00007fb9b80110e0, ), path: LookupPath( [ S( "price", Py( 0x00007fb9babaaf10, ), ), ], ), }, name_py: Py( 0x00007fb9b819c7b0, ), validator: Model( ModelValidator { revalidate: Never, validator: TaggedUnion( TaggedUnionValidator { discriminator: LookupKey( Simple { key: "type", py_key: Py( 0x00007fb9bbe3c5a0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9bbe3c5a0, ), ), ], ), }, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "enterprise": 2, "flat": 0, "per_user": 1, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2e80, ), ), values: [ Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "interval", lookup_key: Simple { key: "interval", py_key: Py( 0x00007fb9b75a3070, ), path: LookupPath( [ S( "interval", Py( 0x00007fb9b75a3030, ), ), ], ), }, name_py: Py( 0x00007fb9baefdaf0, ), validator: DefinitionRef( DefinitionRefValidator { definition: "...", }, ), frozen: false, }, Field { name: "price", lookup_key: Simple { key: "price", py_key: Py( 0x00007fb9b80111d0, ), path: LookupPath( [ S( "price", Py( 0x00007fb9b8011770, ), ), ], ), }, name_py: Py( 0x00007fb9b819c7b0, ), validator: Float( FloatValidator { strict: false, allow_inf_nan: true, }, ), frozen: false, }, Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b80103f0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b80115f0, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9ba347030, ), ), on_error: Raise, validator: Literal( LiteralValidator { lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "flat": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2fc0, ), ), values: [ Py( 0x00007fb9ba347030, ), ], }, expected_repr: "'flat'", name: "literal['flat']", }, ), validate_default: false, copy_default: false, name: "default[literal['flat']]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "OptionFlat", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea96e090, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "OptionFlat", }, ), Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "interval", lookup_key: Simple { key: "interval", py_key: Py( 0x00007fb9b75a2f70, ), path: LookupPath( [ S( "interval", Py( 0x00007fb9b75a2f30, ), ), ], ), }, name_py: Py( 0x00007fb9baefdaf0, ), validator: DefinitionRef( DefinitionRefValidator { definition: "...", }, ), frozen: false, }, Field { name: "price", lookup_key: Simple { key: "price", py_key: Py( 0x00007fb9b8011680, ), path: LookupPath( [ S( "price", Py( 0x00007fb9b80104b0, ), ), ], ), }, name_py: Py( 0x00007fb9b819c7b0, ), validator: Float( FloatValidator { strict: false, allow_inf_nan: true, }, ), frozen: false, }, Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b8011170, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b8010840, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9b75f0a30, ), ), on_error: Raise, validator: Literal( LiteralValidator { lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "per_user": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2f00, ), ), values: [ Py( 0x00007fb9b75f0a30, ), ], }, expected_repr: "'per_user'", name: "literal['per_user']", }, ), validate_default: false, copy_default: false, name: "default[literal['per_user']]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "OptionPerUser", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea970080, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "OptionPerUser", }, ), Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b80111a0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b8011140, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9b75f0b70, ), ), on_error: Raise, validator: Literal( LiteralValidator { lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "enterprise": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2ec0, ), ), values: [ Py( 0x00007fb9b75f0b70, ), ], }, expected_repr: "'enterprise'", name: "literal['enterprise']", }, ), validate_default: false, copy_default: false, name: "default[literal['enterprise']]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "OptionEnterprise", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea972470, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "OptionEnterprise", }, ), ], }, from_attributes: true, strict: false, custom_error: None, tags_repr: "'flat', 'per_user', 'enterprise'", discriminator_repr: "'type'", name: "tagged-union[OptionFlat,OptionPerUser,OptionEnterprise]", }, ), class: Py( 0x0000560cea976200, ), generic_origin: Some( Py( 0x0000560ceb6a9910, ), ), post_init: None, frozen: false, custom_init: false, root_model: true, undefined: Py( 0x00007fb9b9d9a350, ), name: "RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]", }, ), frozen: false, }, Field { name: "share_links", lookup_key: Simple { key: "share_links", py_key: Py( 0x00007fb9b7f7e070, ), path: LookupPath( [ S( "share_links", Py( 0x00007fb9b75a2e30, ), ), ], ), }, name_py: Py( 0x00007fb9b75fa870, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9bbd47100, ), ), on_error: Raise, validator: Nullable( NullableValidator { validator: List( ListValidator { strict: false, item_validator: Some( StrEnum( EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py( 0x0000560cea97c1f0, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "password_protected": 1, "public": 0, "organization_only": 2, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a3000, ), ), values: [ Py( 0x00007fb9b7649a30, ), Py( 0x00007fb9b7649a90, ), Py( 0x00007fb9b7649af0, ), ], }, missing: None, expected_repr: "'public', 'password_protected' or 'organization_only'", strict: false, class_repr: "ModelingAppShareLinks", name: "str-enum[ModelingAppShareLinks]", }, ), ), min_length: None, max_length: None, name: OnceLock( "list[str-enum[ModelingAppShareLinks]]", ), fail_fast: false, }, ), name: "nullable[list[str-enum[ModelingAppShareLinks]]]", }, ), validate_default: false, copy_default: false, name: "default[nullable[list[str-enum[ModelingAppShareLinks]]]]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, Field { name: "support_tier", lookup_key: Simple { key: "support_tier", py_key: Py( 0x00007fb9b75a2db0, ), path: LookupPath( [ S( "support_tier", Py( 0x00007fb9b75a2d70, ), ), ], ), }, name_py: Py( 0x00007fb9b81ad730, ), validator: StrEnum( EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py( 0x0000560cea988060, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "premium": 2, "community": 0, "standard": 1, "priority": 3, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2e00, ), ), values: [ Py( 0x00007fb9b764a4b0, ), Py( 0x00007fb9b764a570, ), Py( 0x00007fb9b764a5d0, ), Py( 0x00007fb9b764a630, ), ], }, missing: None, expected_repr: "'community', 'standard', 'premium' or 'priority'", strict: false, class_repr: "SupportTier", name: "str-enum[SupportTier]", }, ), frozen: false, }, Field { name: "training_data_behavior", lookup_key: Simple { key: "training_data_behavior", py_key: Py( 0x00007fb9b75a2d30, ), path: LookupPath( [ S( "training_data_behavior", Py( 0x00007fb9b75a2cf0, ), ), ], ), }, name_py: Py( 0x00007fb9b75fa8f0, ), validator: StrEnum( EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py( 0x0000560cea987c80, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "default_off": 2, "default_on": 1, "always": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b7f31c40, ), ), values: [ Py( 0x00007fb9b764a210, ), Py( 0x00007fb9b764a2d0, ), Py( 0x00007fb9b764a330, ), ], }, missing: None, expected_repr: "'always', 'default_on' or 'default_off'", strict: false, class_repr: "SubscriptionTrainingDataBehavior", name: "str-enum[SubscriptionTrainingDataBehavior]", }, ), frozen: false, }, Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b81f7210, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b81f7240, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: Model( ModelValidator { revalidate: Never, validator: TaggedUnion( TaggedUnionValidator { discriminator: LookupKey( Simple { key: "type", py_key: Py( 0x00007fb9bbe3c5a0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9bbe3c5a0, ), ), ], ), }, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "organization": 1, "individual": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2b80, ), ), values: [ Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b8199fe0, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b81f7660, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9b75fa270, ), ), on_error: Raise, validator: Literal( LiteralValidator { lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "individual": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2c80, ), ), values: [ Py( 0x00007fb9b75fa270, ), ], }, expected_repr: "'individual'", name: "literal['individual']", }, ), validate_default: false, copy_default: false, name: "default[literal['individual']]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "OptionIndividual", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560ceae43060, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "OptionIndividual", }, ), Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "saml_sso", lookup_key: Simple { key: "saml_sso", py_key: Py( 0x00007fb9b75a2c30, ), path: LookupPath( [ S( "saml_sso", Py( 0x00007fb9b75a2bf0, ), ), ], ), }, name_py: Py( 0x00007fb9b75fa170, ), validator: Bool( BoolValidator { strict: false, }, ), frozen: false, }, Field { name: "type", lookup_key: Simple { key: "type", py_key: Py( 0x00007fb9b81f7600, ), path: LookupPath( [ S( "type", Py( 0x00007fb9b81f74e0, ), ), ], ), }, name_py: Py( 0x00007fb9bbe3c5a0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9bab9aaf0, ), ), on_error: Raise, validator: Literal( LiteralValidator { lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "organization": 0, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2bc0, ), ), values: [ Py( 0x00007fb9bab9aaf0, ), ], }, expected_repr: "'organization'", name: "literal['organization']", }, ), validate_default: false, copy_default: false, name: "default[literal['organization']]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "OptionOrganization", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea9810c0, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "OptionOrganization", }, ), ], }, from_attributes: true, strict: false, custom_error: None, tags_repr: "'individual', 'organization'", discriminator_repr: "'type'", name: "tagged-union[OptionIndividual,OptionOrganization]", }, ), class: Py( 0x0000560cea983e30, ), generic_origin: Some( Py( 0x0000560ceb6a9910, ), ), post_init: None, frozen: false, custom_init: false, root_model: true, undefined: Py( 0x00007fb9b9d9a350, ), name: "RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]", }, ), frozen: false, }, Field { name: "zoo_tools_included", lookup_key: Simple { key: "zoo_tools_included", py_key: Py( 0x00007fb9b75a2b30, ), path: LookupPath( [ S( "zoo_tools_included", Py( 0x00007fb9b75a2af0, ), ), ], ), }, name_py: Py( 0x00007fb9b75fa9b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fb9bbd47100, ), ), on_error: Raise, validator: Nullable( NullableValidator { validator: List( ListValidator { strict: false, item_validator: Some( StrEnum( EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py( 0x0000560cea9890a0, ), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some( { "modeling_app": 0, "diff_chrome_extension": 2, "text_to_cad": 1, }, ), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some( Py( 0x00007fb9b75a2cc0, ), ), values: [ Py( 0x00007fb9b764a510, ), Py( 0x00007fb9b764a690, ), Py( 0x00007fb9b764a6f0, ), ], }, missing: None, expected_repr: "'modeling_app', 'text_to_cad' or 'diff_chrome_extension'", strict: false, class_repr: "ZooTool", name: "str-enum[ZooTool]", }, ), ), min_length: None, max_length: None, name: OnceLock( "list[str-enum[ZooTool]]", ), fail_fast: false, }, ), name: "nullable[list[str-enum[ZooTool]]]", }, ), validate_default: false, copy_default: false, name: "default[nullable[list[str-enum[ZooTool]]]]", undefined: Py( 0x00007fb9b9d9a350, ), }, ), frozen: false, }, ], model_name: "ModelingAppSubscriptionTier", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000560cea989790, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fb9b9d9a350, ), name: "ModelingAppSubscriptionTier", }, ), definitions=[StrEnum(EnumValidator { phantom: PhantomData<_pydantic_core::validators::enum_::StrEnumValidator>, class: Py(0x560cea974610), lookup: LiteralLookup { expected_bool: None, expected_int: None, expected_str: Some({"year": 3, "week": 2, "day": 0, "month": 1}), expected_py_dict: None, expected_py_values: None, expected_py_primitives: Some(Py(0x7fb9b75a32c0)), values: [Py(0x7fb9b7649310), Py(0x7fb9b7649370), Py(0x7fb9b76493d0), Py(0x7fb9b7649430)] }, missing: None, expected_repr: "'day', 'month', 'week' or 'year'", strict: false, class_repr: "PlanInterval", name: "str-enum[PlanInterval]" })], cache_strings=True)[source]
The
pydantic-core
SchemaValidator
used to validate instances of the model.
- __replace__(**changes)[source]
Creates a new instance of the model, replacing fields with values from changes. Relevant for v3.13+.
- Return type:
Self
- __repr_recursion__(object)[source]
Returns the string representation of a recursive object.
- Return type:
- __rich_repr__()[source]
Used by Rich (https://rich.readthedocs.io/en/stable/pretty.html) to pretty print objects.
- __signature__: ClassVar[Signature] = <Signature (*, annual_discount: Optional[int] = None, description: str, features: Optional[List[kittycad.models.subscription_tier_feature.SubscriptionTierFeature]] = None, name: kittycad.models.modeling_app_subscription_tier_name.ModelingAppSubscriptionTierName, pay_as_you_go_credits: float, price: pydantic.root_model.RootModel[Annotated[Union[OptionFlat, OptionPerUser, OptionEnterprise], FieldInfo(annotation=NoneType, required=True, discriminator='type')]], share_links: Optional[List[kittycad.models.modeling_app_share_links.ModelingAppShareLinks]] = None, support_tier: kittycad.models.support_tier.SupportTier, training_data_behavior: kittycad.models.subscription_training_data_behavior.SubscriptionTrainingDataBehavior, type: pydantic.root_model.RootModel[Annotated[Union[OptionIndividual, OptionOrganization], FieldInfo(annotation=NoneType, required=True, discriminator='type')]], zoo_tools_included: Optional[List[kittycad.models.zoo_tool.ZooTool]] = None) -> None>[source]
The synthesized
__init__
[Signature
][inspect.Signature] of the model.
- __slots__ = ('__dict__', '__pydantic_fields_set__', '__pydantic_extra__', '__pydantic_private__')[source]
- _calculate_keys(*