migration module#

class edgeimpulse_api.models.migration.Migration(
*,
id: StrictStr,
state: StrictStr,
offset: StrictInt | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
classmethod from_dict(obj: dict) Migration[source]#

Create an instance of Migration from a dict

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

Create an instance of Migration from a JSON string

id: StrictStr#
offset: StrictInt | None#
state: StrictStr#
classmethod state_validate_enum(v)[source]#
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