code: def maximum_active_partitions(self):
          
          machine_type = self.get_property('machine-type')
          try:
              max_parts = self._MAX_PARTITIONS_BY_MACHINE_TYPE[machine_type]
          except KeyError:
              raise ValueError("Unknown machine type: {!r}".format(machine_type))
          return max_parts
docs: Integer: The maximum number of active logical partitions or partitions
          of this CPC.
  
          The following table shows the maximum number of active logical
          partitions or partitions by machine generations supported at the HMC
          API:
  
          =========================  ==================
          Machine generation         Maximum partitions
          =========================  ==================
          z196                                      60
          z114                                      30
          zEC12                                     60
          zBC12                                     30
          z13 / Emperor                             85
          z13s / Rockhopper                         40
          z14 / Emperor II                          85
          z14-ZR1 / Rockhopper II                   40
          =========================  ==================
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`
            :exc:`ValueError`: Unknown machine type