DWHQueryInput¶
- pydantic model openapi_client.models.dwh_query_input.DWHQueryInput¶
Body when operations=queries. Schema is intentionally permissive for API Gateway validation; the Lambda enforces per-QueryType rules. QueryType values: vacuum, system-tables, kill. - vacuum: SchemaName, TableName; optional VacuumType, ThresholdPercent - system-tables: SystemTable; optional Limit, Tenant - kill: KillType (SESSION`|`QUERY), ProcessID (integer)
- Fields:
- field query_type: Optional[StrictStr] = None (alias 'QueryType')¶
vacuum | system-tables | kill
- field table_name: Optional[StrictStr] = None (alias 'TableName')¶
- field schema_name: Optional[StrictStr] = None (alias 'SchemaName')¶
- field vacuum_type: Optional[StrictStr] = None (alias 'VacuumType')¶
FULL | SORT ONLY | DELETE ONLY | REINDEX
- field threshold_percent: Optional[Any] = None (alias 'ThresholdPercent')¶
Integer 0-100 (not valid with REINDEX)
- field system_table: Optional[StrictStr] = None (alias 'SystemTable')¶
- field tenant: Optional[StrictStr] = None (alias 'Tenant')¶
- field limit: Optional[Any] = None (alias 'Limit')¶
Optional row limit for system-tables (integer)
- field kill_type: Optional[StrictStr] = None (alias 'KillType')¶
SESSION or QUERY
- field process_id: Optional[Any] = None (alias 'ProcessID')¶
Backend process id (integer required by handler)
- field additional_properties: Dict[str, Any] = {}¶
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of DWHQueryInput from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
Fields in self.additional_properties are added to the output dict.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of DWHQueryInput from a dict
- Return type:
Optional[Self]