You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/structs/blockdevice.py

26 lines
629 B

from dataclasses import dataclass
@dataclass
class BlockDevice:
"""
Represents a block device.
Attributes:
device (str): The device name.
cluster (str): The cluster name.
description (str): A description of the block device.
"""
def __init__(self, device: str, cluster: str, description: str):
self.device = device
self.cluster = cluster
self.description = description
def __str__(self):
return (
f"BlockDevice(device={self.device},"
f" cluster={self.cluster},"
f" description={self.description})"
)