jamf_pro_sdk.models.pro.computers.Computer

class Computer(*, id: str | None = None, udid: str | None = None, general: ComputerGeneral | None = <factory>, diskEncryption: ComputerDiskEncryption | None = None, purchasing: ComputerPurchase | None = None, applications: List[ComputerApplication] | None = None, storage: ComputerStorage | None = None, userAndLocation: ComputerUserAndLocation | None = <factory>, configurationProfiles: List[ComputerConfigurationProfile] | None = None, printers: List[ComputerPrinter] | None = None, services: List[ComputerService] | None = None, hardware: ComputerHardware | None = None, localUserAccounts: List[ComputerLocalUserAccount] | None = None, certificates: List[ComputerCertificate] | None = None, attachments: List[ComputerAttachment] | None = None, plugins: List[ComputerPlugin] | None = None, packageReceipts: ComputerPackageReceipts | None = None, fonts: List[ComputerFont] | None = None, security: ComputerSecurity | None = None, operatingSystem: ComputerOperatingSystem | None = None, licensedSoftware: List[ComputerLicensedSoftware] | None = None, ibeacons: List[ComputeriBeacon] | None = None, softwareUpdates: List[ComputerSoftwareUpdate] | None = None, extensionAttributes: List[ComputerExtensionAttribute] | None = None, contentCaching: ComputerContentCaching | None = None, groupMemberships: List[ComputerGroupMembership] | None = None, **kwargs)

Represents a full computer inventory record.

Used for both v1 and v3 endpoints. The v3 API does not return plugins or fonts (they will be None), and adds cfBundleShortVersionString/cfBundleVersion to application entries.

Parameters:
__init__(**kwargs)

Methods

__init__(**kwargs)

construct([_fields_set])

copy(*[, include, exclude, update, deep])

Returns a copy of the model.

dict(*[, include, exclude, by_alias, ...])

from_orm(obj)

json(*[, include, exclude, by_alias, ...])

model_construct([_fields_set])

Creates a new instance of the Model class with validated data.

model_copy(*[, update, deep])

!!! abstract "Usage Documentation"

model_dump(*[, mode, include, exclude, ...])

!!! abstract "Usage Documentation"

model_dump_json(*[, indent, ensure_ascii, ...])

!!! abstract "Usage Documentation"

model_json_schema(by_alias, ref_template, ...)

Generates a JSON schema for a model class.

model_parametrized_name(params)

Compute the class name for parametrizations of generic classes.

model_post_init(context, /)

Override this method to perform additional initialization after __init__ and model_construct.

model_rebuild(*[, force, raise_errors, ...])

Try to rebuild the pydantic-core schema for the model.

model_validate(obj, *[, strict, extra, ...])

Validate a pydantic model instance.

model_validate_json(json_data, *[, strict, ...])

!!! abstract "Usage Documentation"

model_validate_strings(obj, *[, strict, ...])

Validate the given object with string data against the Pydantic model.

parse_file(path, *[, content_type, ...])

parse_obj(obj)

parse_raw(b, *[, content_type, encoding, ...])

schema([by_alias, ref_template])

schema_json(*[, by_alias, ref_template])

update_forward_refs(**localns)

validate(value)

Attributes

model_computed_fields

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

id

udid

general

diskEncryption

purchasing

applications

storage

userAndLocation

configurationProfiles

printers

services

hardware

localUserAccounts

certificates

attachments

plugins

packageReceipts

fonts

security

operatingSystem

licensedSoftware

ibeacons

softwareUpdates

extensionAttributes

contentCaching

groupMemberships