code: def attach_storage_group(self, storage_group):
          
          body = {'storage-group-uri': storage_group.uri}
          self.manager.session.post(
              self.uri + '/operations/attach-storage-group', body)
docs: Attach a :term:`storage group` to this partition.
  
          This will cause the :term:`storage volumes <storage volume>` of the
          storage group to be attached to the partition, instantiating any
          necessary :term:`virtual storage resource` objects.
  
          A storage group can be attached to a partition regardless of its
          fulfillment state. The fulfillment state of its storage volumes
          and thus of the entire storage group changes as volumes are discovered
          by DPM, and will eventually reach "complete".
  
          The CPC must have the "dpm-storage-management" feature enabled.
  
          Authorization requirements:
  
          * Object-access permission to this partition.
          * Object-access permission to the specified storage group.
          * Task permission to the "Partition Details" task.
  
          Parameters:
  
            storage_group (:class:`~zhmcclient.StorageGroup`):
              Storage group to be attached. The storage group must not currently
              be attached to this partition.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`