Data Models¶
The Looker PowerPoint CLI uses Pydantic models to validate and structure data for PowerPoint shape integration.
LookerReference¶
- class looker_powerpoint.models.LookerReference[source]¶
Bases:
BaseModelThis model represents the input you can set in alternative text for a shape in PowerPoint. You can specify the different parameters to control how Looker data is fetched and displayed.
- Fields:
- Validators:
- field id_type: str = 'look'¶
The type of ID provided: ‘look’ or ‘meta’. Defaults to ‘look’. Setting to ‘meta’ indicates that the ID refers to a meta Look.
- field meta: bool = False¶
Set this to true if the Look is a meta Look. A meta look is a look that you want to retrieve and reuse, but not display directly.
- field meta_name: str = None¶
NOT actually working yet. If you are defining a meta look, you should provide a reference name here. This can then be used by other shapes to reference this meta look.
- field meta_iterate: bool = False¶
If set to true, this meta look will be iterated over by other shapes referencing it. This is useful for creating dynamic content based on the results of the meta look.
- field label: str = None¶
Setting a label here filters the results to the specified label. The label needs to match the specific column label from the look including any special characters.
- field row: int = None¶
If you want to retrieve a specific row from the Look results, set the row number here (0-indexed).
- field filter: str = None¶
Define a lookml.field_name used in the Look that you want to be able to filter on using the –filter cli argument. Inputting –filter <value> will filter the results to where <label>=<value>.
- field filter_overwrites: dict = None¶
A dictionary of filter overwrites to apply to the Look. The keys are the filter lookml.field_names, and the values are the filter values. The filter values should not be enclosed in quotation marks. (unvalidated)
- field show_latest_chart_label: bool = False¶
If set to true, modify chart series with labels to only show the latest label.
- field server_table_calcs: bool = True¶
Whether to compute table calculations on the Looker server before returning results.
- field headers: bool = True¶
Whether to overwrite headers in the result set with Looker-defined column labels.
- field image_width: int = None¶
Width of the image in pixels. Used for setting image size when asking looker to return a look rendered as an image.
- field image_height: int = None¶
Height of the image in pixels. Used for setting image size when asking looker to return a look rendered as an image.