jamf_pro_sdk.models.classic.ClassicApiModel

pydantic model ClassicApiModel

The base model used for Classic API models.

xml(exclude_none: bool = True, exclude_read_only: bool = False) str

Generate a Jamf Pro XML representation of the model.

Parameters:
  • exclude_none (bool) – Any field with a value of None is not included.

  • exclude_read_only (bool) – If write field names are set, only include those.

Returns:

XML string

Return type:

str

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