code: def generate_root(self, key, nonce):
          
          params = {
              'key': key,
              'nonce': nonce,
          }
          api_path = '/v1/sys/generate-root/update'
          response = self._adapter.put(
              url=api_path,
              json=params,
          )
          return response.json()
docs: Enter a single master key share to progress the root generation attempt.
  
          If the threshold number of master key shares is reached, Vault will complete the root generation and issue the
          new token. Otherwise, this API must be called multiple times until that threshold is met. The attempt nonce must
          be provided with each call.
  
          Supported methods:
              PUT: /sys/generate-root/update. Produces: 200 application/json
  
          :param key: Specifies a single master key share.
          :type key: str | unicode
          :param nonce: The nonce of the attempt.
          :type nonce: str | unicode
          :return: The JSON response of the request.
          :rtype: dict