Exemple #1
0
def restore_azure_wl(cmd,
                     client,
                     resource_group_name,
                     vault_name,
                     recovery_config,
                     rehydration_duration=15,
                     rehydration_priority=None):

    if rehydration_duration < 10 or rehydration_duration > 30:
        raise InvalidArgumentValueError(
            '--rehydration-duration must have a value between 10 and 30 (both inclusive).'
        )

    return custom_wl.restore_azure_wl(cmd, client, resource_group_name,
                                      vault_name, recovery_config,
                                      rehydration_duration,
                                      rehydration_priority)
Exemple #2
0
def restore_azure_wl(cmd, client, resource_group_name, vault_name,
                     recovery_config):
    return custom_wl.restore_azure_wl(cmd, client, resource_group_name,
                                      vault_name, recovery_config)