azext_edge/edge/util/__init__.py (46 lines of code) (raw):

# coding=utf-8 # ---------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License file in the project root for license information. # ---------------------------------------------------------------------------------------------- from .common import ( assemble_nargs_to_dict, build_query, chunk_list, generate_secret, get_timestamp_now_utc, is_enabled_str, is_env_flag_enabled, parse_dot_notation, parse_kvp_nargs, set_log_level, should_continue_prompt, to_safe_filename, upsert_by_discriminator, url_safe_hash_phrase, url_safe_random_chars, ) from .file_operations import ( deserialize_file_content, dump_content_to_file, normalize_dir, read_file_content, ) from .x509 import generate_self_signed_cert __all__ = [ "assemble_nargs_to_dict", "build_query", "chunk_list", "deserialize_file_content", "dump_content_to_file", "generate_secret", "generate_self_signed_cert", "get_timestamp_now_utc", "is_enabled_str", "is_env_flag_enabled", "normalize_dir", "parse_dot_notation", "parse_kvp_nargs", "read_file_content", "set_log_level", "should_continue_prompt", "to_safe_filename", "upsert_by_discriminator", "url_safe_hash_phrase", "url_safe_random_chars", ]