realvitya / pyfortinet

Fortinet Python API library
https://realvitya.github.io/pyfortinet/
2 stars 1 forks source link

FMG - get method field-set feature needed #15

Open realvitya opened 1 month ago

realvitya commented 1 month ago

It would be nice to have an internal field of each FMGObject which describes what fields to get by default. There could be:

_get_field_set = {
    "min": ["id", "name"],
    "extended": ["id", "name", "color", "shape", "whatever"],
    "all": None
}

Then, we could make a get call like that: fmg.get(DeviceInterface(device="myfw"), field_set="min").data