AssetDetailsAssetSchema

class openapi_client.models.asset_details_asset_schema.AssetDetailsAssetSchema(*args, **kwargs)[source]

Bases: BaseModel

oneof_schema_1_validator: Optional[Dict[str, Any]]
oneof_schema_2_validator: Optional[List[Dict[str, Any]]]
actual_instance: Optional[Union[List[object], object]]
one_of_schemas: Set[str]
model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

__init__(*args, **kwargs)[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.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

classmethod actual_instance_must_validate_oneof(v)[source]
classmethod from_dict(obj)[source]
Return type:

Self

model_fields: ClassVar[dict[str, FieldInfo]] = {'actual_instance': FieldInfo(annotation=Union[List[object], object, NoneType], required=False), 'one_of_schemas': FieldInfo(annotation=Set[str], required=False, default={'object', 'List[object]'}), 'oneof_schema_1_validator': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False), 'oneof_schema_2_validator': FieldInfo(annotation=Union[List[Dict[str, Any]], NoneType], required=False)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

classmethod from_json(json_str)[source]

Returns the object represented by the json string

Return type:

Self

to_json()[source]

Returns the JSON representation of the actual instance

Return type:

str

to_dict()[source]

Returns the dict representation of the actual instance

Return type:

Union[Dict[str, Any], List[object], object, None]

to_str()[source]

Returns the string representation of the actual instance

Return type:

str