DeviceVersion

class pyniryo_nate.models.device.DeviceVersion(api_version: str, api_commit: str)[source]

Bases: object

Identity of the API binary, stamped in at build time. This is the build of one service inside the release, not the release: see DeviceIdentity.software for that.

Parameters:
  • api_version (str) – Git tag the binary was built from, without its leading v, dev when it carried none.

  • api_commit (str) – Commit the binary was built from, unknown when it carried none.

Attributes

Methods

api_version: str
api_commit: str
classmethod from_transport_model(model: DeviceVersion) → DeviceVersion[source]
Parameters:

model (DeviceVersion)

Return type:

DeviceVersion