Views Models
Views/Grids models for the ACPortal API.
- class ab.api.models.views.GridViewDetails(*, viewId=None, name=None, datasetSp=None, columns=None, filters=None, access=None, **extra_data)[source]
Bases:
ResponseModelFull view configuration — GET /views/{viewId} and GET /views/all.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.views.GridViewAccess(*, viewId=None, users=None, roles=None, **extra_data)[source]
Bases:
ResponseModelView access control — GET /views/{viewId}/accessinfo.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.views.StoredProcedureColumn(*, name=None, dataType=None, isSortable=None, **extra_data)[source]
Bases:
ResponseModelDataset stored procedure column — GET /views/datasetsps and /views/datasetsp/{spName}.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.views.GridViewCreateRequest(*, name=None, datasetSp=None, columns=None)[source]
Bases:
RequestModelBody for POST /views.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].