def role_to_selected_disk_config(host_id, path, role): disk_config_params = models.DiskConfigParams(id=path, role=role) return models.ClusterupdateparamsDisksSelectedConfig( id=host_id, disks_config=[disk_config_params])
def role_to_selected_disk_config( host_id: str, disk_id: str, role: models.DiskRole ) -> models.ClusterupdateparamsDisksSelectedConfig: disk_config_params = models.DiskConfigParams(id=disk_id, role=role) return models.ClusterupdateparamsDisksSelectedConfig( id=host_id, disks_config=[disk_config_params])