Source code for gpp_client.generated.delete_program_by_id
from typing import Any, Optional
from pydantic import Field
from .base_model import BaseModel
from .fragments import ProgramDetail
[docs]
class DeleteProgramById(BaseModel):
update_programs: "DeleteProgramByIdUpdatePrograms" = Field(alias="updatePrograms")
[docs]
class DeleteProgramByIdUpdatePrograms(BaseModel):
has_more: bool = Field(alias="hasMore")
programs: list["DeleteProgramByIdUpdateProgramsPrograms"]
[docs]
class DeleteProgramByIdUpdateProgramsPrograms(ProgramDetail):
all_group_elements: list[
"DeleteProgramByIdUpdateProgramsProgramsAllGroupElements"
] = Field(alias="allGroupElements")
[docs]
class DeleteProgramByIdUpdateProgramsProgramsAllGroupElements(BaseModel):
parent_group_id: Optional[Any] = Field(alias="parentGroupId")
observation: Optional[
"DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsObservation"
]
group: Optional["DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroup"]
[docs]
class DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsObservation(BaseModel):
id: Any
group_id: Optional[Any] = Field(alias="groupId")
[docs]
class DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroup(BaseModel):
id: Any
name: Optional[Any]
minimum_required: Optional[Any] = Field(alias="minimumRequired")
ordered: bool
parent_id: Optional[Any] = Field(alias="parentId")
parent_index: Any = Field(alias="parentIndex")
minimum_interval: Optional[
"DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroupMinimumInterval"
] = Field(alias="minimumInterval")
maximum_interval: Optional[
"DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroupMaximumInterval"
] = Field(alias="maximumInterval")
system: bool
[docs]
class DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroupMinimumInterval(
BaseModel
):
seconds: Any
[docs]
class DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroupMaximumInterval(
BaseModel
):
seconds: Any
DeleteProgramById.model_rebuild()
DeleteProgramByIdUpdatePrograms.model_rebuild()
DeleteProgramByIdUpdateProgramsPrograms.model_rebuild()
DeleteProgramByIdUpdateProgramsProgramsAllGroupElements.model_rebuild()
DeleteProgramByIdUpdateProgramsProgramsAllGroupElementsGroup.model_rebuild()