@classmethod
  def _GetOptionDecoderConstructions(cls):
    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
Gets decoder classes and constructor args for each configurable option.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/disk.py/BaseDiskSpec._GetOptionDecoderConstructions