OptimizerListItem

pydantic model openapi_client.models.optimizer_list_item.OptimizerListItem

Flat optimizer details returned when listing all optimizer types (no type query param). Field set varies by optimizer kind.

Fields:
field enabled: Optional[StrictBool] = None (alias 'Enabled')
field configuration_source: Optional[StrictStr] = None (alias 'ConfigurationSource')
field strategy: Optional[StrictStr] = None (alias 'Strategy')
field min_input_files: Optional[StrictInt] = None (alias 'MinInputFiles')
field delete_file_threshold: Optional[StrictInt] = None (alias 'DeleteFileThreshold')
field snapshot_retention_period_in_days: Optional[StrictInt] = None (alias 'SnapshotRetentionPeriodInDays')
field number_of_snapshots_to_retain: Optional[StrictInt] = None (alias 'NumberOfSnapshotsToRetain')
field clean_expired_files: Optional[StrictBool] = None (alias 'CleanExpiredFiles')
field orphan_file_retention_period_in_days: Optional[StrictInt] = None (alias 'OrphanFileRetentionPeriodInDays')
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 OptimizerListItem 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 OptimizerListItem from a dict

Return type:

Optional[Self]