code: def duplicate(self, name):
          
          dup = self.make_request(
              method='update',
              raw_result=True,
              resource='duplicate',
              params={'name': name})
          return type(self)(name=name, href=dup.href, type=type(self).typeof)
docs: .. versionadded:: 0.5.8
              Requires SMC version >= 6.3.2
          
          Duplicate this element. This is a shortcut method that will make
          a direct copy of the element under the new name and type.
          
          :param str name: name for the duplicated element
          :raises ActionCommandFailed: failed to duplicate the element
          :return: the newly created element
          :rtype: Element