:mod:`cloudmesh.management.configuration.generic_config` ======================================================== .. py:module:: cloudmesh.management.configuration.generic_config Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: cloudmesh.management.configuration.generic_config.GenericConfig .. class:: GenericConfig(config_path) Bases: :class:`object` .. method:: get(self, key, default=None) A helper function for reading values from the config without a chain of `get()` calls. Usage: mongo_conn = conf.get('db.mongo.MONGO_CONNECTION_STRING') default_db = conf.get('default.db') az_credentials = conf.get('data.service.azure.credentials') :param default: :param key: A string representing the value's path in the config. .. method:: set(self, key, value) A helper function for setting values in the config without a chain of `set()` calls. Usage: mongo_conn = conf.get('db.mongo.MONGO_CONNECTION_STRING', "https://localhost:3232") :param key: A string representing the value's path in the config. :param value: value to be set. .. method:: deep_set(self, keys, value=None) A helper function for setting values in the config without a chain of `set()` calls. Usage: mongo_conn = conf.get('db.mongo.MONGO_CONNECTION_STRING', "https://localhost:3232") :param keys: A string representing the value's path in the config. :param value: value to be set. .. method:: keys(self) Print the key names :return: .. method:: remove(self, path, key_to_remove) :return: