cloudendure.config

Define the CloudEndure Config related logic.

CloudEndureConfig

CloudEndureConfig(self,
                  username: 'str' = '',
                  password: 'str' = '',
                  token: 'str' = '',
                  *args,
                  **kwargs)

Define the CloudEndure Config object.

BASE_CONFIG

merge_config_dicts

CloudEndureConfig.merge_config_dicts(values: 'List[Any]')

Merge a list of configuration dictionaries.

read_yaml_config

CloudEndureConfig.read_yaml_config()

Read the CloudEndure YAML configuration file.

write_yaml_config

CloudEndureConfig.write_yaml_config(config: 'Dict[str, Any]')

Write to the CloudEndure YAML configuration file.

update_yaml_config

CloudEndureConfig.update_yaml_config(kwargs: 'Dict[str, Any]')

Update the YAML configuration file.

get_env_vars

CloudEndureConfig.get_env_vars(prefix: 'str' = 'cloudendure')

Get all environment variables starting with CLOUDENDURE_.

update_config

CloudEndureConfig.update_config()

Update the configuration.

update_token

CloudEndureConfig.update_token(token: 'str')

Update the CloudEndure token.

Returns: bool: Whether or not the operation was successful.

get_var

CloudEndureConfig.get_var(var: 'str')

Get the specified environment or config variable.

Returns: str: The variable to be used for the provided configuration env var.