Create a new config.

        :param resource: :class:`configs.Config <configs.Config>` object
        :return: :class:`configs.Config <configs.Config>` object
        :rtype: configs.Config

def create(self, resource):
        """Create a new config.

        :param resource: :class:`configs.Config <configs.Config>` object
        :return: :class:`configs.Config <configs.Config>` object
        :rtype: configs.Config
        """
        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)