block_parameters module

BlockParameters

class edgeimpulse_api.models.block_parameters.BlockParameters(
		**data: Any
)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Parameters

  • **data: Any

Bases

  • pydantic.main.BaseModel

  • pydantic.utils.Representation

Class variables

  • Config

  • actual_instance: Any

  • one_of_schemas: List[str]

  • oneof_schema_1_validator: Optional[edgeimpulse_api.models.block_params_visual_anomaly_patchcore.BlockParamsVisualAnomalyPatchcore]

  • oneof_schema_2_validator: Optional[edgeimpulse_api.models.block_params_visual_anomaly_gmm.BlockParamsVisualAnomalyGmm]

Static methods

actual_instance_must_validate_oneof

edgeimpulse_api.models.block_parameters.actual_instance_must_validate_oneof(
		v
)

Parameters

  • v

from_dict

edgeimpulse_api.models.block_parameters.from_dict(
		obj: dict
)> edgeimpulse_api.models.block_parameters.BlockParameters

Parameters

  • obj: dict

Return

edgeimpulse_api.models.block_parameters.BlockParameters

from_json

edgeimpulse_api.models.block_parameters.from_json(
		json_str: str
)> edgeimpulse_api.models.block_parameters.BlockParameters

Returns the object represented by the json string

Parameters

  • json_str: str

Return

edgeimpulse_api.models.block_parameters.BlockParameters

Methods

to_dict

edgeimpulse_api.models.block_parameters.to_dict(
		self
)> dict

Returns the dict representation of the actual instance

Parameters

  • self

Return

dict

to_json

edgeimpulse_api.models.block_parameters.to_json(
		self,
		indent=None
)> str

Returns the JSON representation of the actual instance

Parameters

  • self

  • indent=None

Return

str

to_str

edgeimpulse_api.models.block_parameters.to_str(
		self
)> str

Returns the string representation of the actual instance

Parameters

  • self

Return

str

Last updated