jamf_pro_sdk.models.classic.computer_groups.ClassicComputerGroup¶
- pydantic model ClassicComputerGroup¶
Represents a computer group record returned by the
list_computer_groups()andget_computer_group_by_id()operations.When returned by
list_computer_groupsonlyid,nameandis_smartwill be populated.When exporting to XML for a
POST/PUToperation, the SDK by default will only includename,is_smart,site, andcriteria. To bypass this behavior export the model usingxml()before pasting to the API operation.- field id: int | None = None¶
- field name: str | None = None¶
- field is_smart: bool | None = None¶
- field site: ClassicSite | None = None¶
- field criteria: List[ClassicCriterion] | None = None¶
- field computers: List[ClassicComputerGroupMember] | None = None¶
- model_post_init(context: Any, /) None¶
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Args:
self: The BaseModel instance. context: The context.
- Parameters:
self (BaseModel)
context (Any)
- Return type:
None