code: def create(self, resource):
          
          schema = self.CREATE_SCHEMA
          json = self.service.encode(schema, resource)
  
          schema = self.GET_SCHEMA
          resp = self.service.create(self.base, json)
          return self.service.decode(schema, resp)
docs: Create a new config.
  
          :param resource: :class:`configs.Config <configs.Config>` object
          :return: :class:`configs.Config <configs.Config>` object
          :rtype: configs.Config