def __init__(self, sub_command): """Create a common daos container sub-command object. Args: sub_command (str): sub-command name """ super().__init__( "/run/daos/container/{}/*".format(sub_command), sub_command) self.pool = PositionalParameter(1) self.cont = PositionalParameter(2) self.sys_name = FormattedParameter("--sys-name={}") self.path = FormattedParameter("--path={}")
def __init__(self): """Create a daos container set-attr command object.""" super().__init__("set-attr") self.attr = PositionalParameter(3) self.value = PositionalParameter(4)
def __init__(self): """Create a daos container list command object.""" super().__init__("/run/daos/container/list/*", "list") self.pool = PositionalParameter(1) self.sys_name = FormattedParameter("--sys-name={}")
def __init__(self): """Create a daos container del-attrs command object.""" super().__init__("del-attr") self.attr = PositionalParameter(3)
def __init__(self): """Create a daos pool set-attr command object.""" super().__init__("set-attr") self.attr = PositionalParameter(2) self.value = PositionalParameter(3) self.sys_name = FormattedParameter("--sys-name={}")