

@classmethod
def _GetOptionDecoderConstructions(cls):
    'Gets decoder classes and constructor args for each configurable option.\n\n    Can be overridden by derived classes to add options or impose additional\n    requirements on existing options.\n\n    Returns:\n      dict. Maps option name string to a (ConfigOptionDecoder class, dict) pair.\n          The pair specifies a decoder class and its __init__() keyword\n          arguments to construct in order to decode the named option.\n    '
    result = super(BaseDiskSpec, cls)._GetOptionDecoderConstructions()
    result.update({
        'device_path': (option_decoders.StringDecoder, {
            'default': None,
            'none_ok': True,
        }),
        'disk_number': (option_decoders.IntDecoder, {
            'default': None,
            'none_ok': True,
        }),
        'disk_size': (option_decoders.IntDecoder, {
            'default': None,
            'none_ok': True,
        }),
        'disk_type': (option_decoders.StringDecoder, {
            'default': None,
            'none_ok': True,
        }),
        'mount_point': (option_decoders.StringDecoder, {
            'default': None,
            'none_ok': True,
        }),
        'num_striped_disks': (option_decoders.IntDecoder, {
            'default': 1,
            'min': 1,
        }),
    })
    return result

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/disk.py BaseDiskSpec._GetOptionDecoderConstructions/original