examples/collect_config_files.py
def collect_config_files(spc, output_dir):
    """
    Get all device config files from Space in batches of 500 each.
    Then collect all versions of each file.
    """
    start = 0
    config_files = []
    while True:
        page = spc.config_file_management.config_files.get(
                                paging={'start': start, 'limit': 500})
        config_files.extend(page)
        start += len(page)
        if len(page) < 500:
            break

    print("There are %d config files to process" % len(config_files))
    for cf in config_files:
        collect_config_file_versions(spc, cf, output_dir)

    print("\nAll Over!!!")

    Get all device config files from Space in batches of 500 each.
    Then collect all versions of each file.
    
Get all device config files from Space in batches of 500 each.
Then collect all versions of each file.
Get all device config files from Space in batches of 500 each . Then collect all versions of each file .
def collect_config_files(spc, output_dir):
    start = 0
    config_files = []
    while True:
        page = spc.config_file_management.config_files.get(
                                paging={'start': start, 'limit': 500})
        config_files.extend(page)
        start += len(page)
        if len(page) < 500:
            break
    print("There are %d config files to process" % len(config_files))
    for cf in config_files:
        collect_config_file_versions(spc, cf, output_dir)
    print("\nAll Over!!!")
def collect_config_files ( spc , output_dir ) : start = 0 config_files = [ ] while True : page = spc . config_file_management . config_files . get ( paging = { 'start' : start , 'limit' : 500 } ) config_files . extend ( page ) start += len ( page ) if len ( page ) < 500 : break print ( "There are %d config files to process" % len ( config_files ) ) for cf in config_files : collect_config_file_versions ( spc , cf , output_dir ) print ( "\nAll Over!!!" )
Get all device config files from Space in batches of 500 each.
Get all device config files from Space in batches of 500 each .
"""
    Get all device config files from Space in batches of 500 each.
    Then collect all versions of each file.
    """
spc
output_dir