

@classmethod
def _ApplyFlags(cls, config_values, flag_values):
    'Overrides config values with flag values.\n\n    Can be overridden by derived classes to add support for specific flags.\n\n    Args:\n      config_values: dict mapping config option names to provided values. Is\n          modified by this function.\n      flag_values: flags.FlagValues. Runtime flags that may override the\n          provided config values.\n\n    Returns:\n      dict mapping config option names to values derived from the config\n      values or flag values.\n    '
    super(BaseDiskSpec, cls)._ApplyFlags(config_values, flag_values)
    if flag_values['data_disk_size'].present:
        config_values['disk_size'] = flag_values.data_disk_size
    if flag_values['data_disk_type'].present:
        config_values['disk_type'] = flag_values.data_disk_type
    if flag_values['num_striped_disks'].present:
        config_values['num_striped_disks'] = flag_values.num_striped_disks
    if flag_values['scratch_dir'].present:
        config_values['mount_point'] = config_values.scratch_dir

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/disk.py BaseDiskSpec._ApplyFlags/VarMisuse@108/357 `flag_values`->`config_values`