learn_block module#

class edgeimpulse_api.models.learn_block.LearnBlock(
*,
type: StrictStr,
title: StrictStr,
author: StrictStr,
description: StrictStr,
name: StrictStr,
recommended: StrictBool | None = None,
organizationModelId: StrictInt | None = None,
isPublicEnterpriseOnly: StrictBool | None = None,
blockType: BlockType,
displayCategory: BlockDisplayCategory | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
author: StrictStr#
block_type: BlockType#
description: StrictStr#
display_category: BlockDisplayCategory | None#
classmethod from_dict(
obj: dict,
) LearnBlock[source]#

Create an instance of LearnBlock from a dict

classmethod from_json(
json_str: str,
) LearnBlock[source]#

Create an instance of LearnBlock from a JSON string

is_public_enterprise_only: StrictBool | None#
name: StrictStr#
organization_model_id: StrictInt | None#
recommended: StrictBool | None#
title: StrictStr#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

type: StrictStr#