rrmsutils.models package

Subpackages

Submodules

rrmsutils.models.apiresponse module

Api Response model

class rrmsutils.models.apiresponse.ApiResponse(*, code: int = 0, message: str = 'OK')

Bases: BaseModel

Api Response model

code: int
message: str
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

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

model_fields: ClassVar[dict[str, FieldInfo]] = {'code': FieldInfo(annotation=int, required=False, default=0), 'message': FieldInfo(annotation=str, required=False, default='OK')}

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

This replaces Model.__fields__ from Pydantic V1.

Module contents