def __add_resource_specific_options(self, obj, specific_options, line, key=None): obj_type = TypeHelper.getDecoratorType(TypeHelper.to_singular(obj)) if obj_type and hasattr(brokers, obj_type): obj_typ_ref = getattr(brokers, obj_type) if obj_typ_ref and hasattr(obj_typ_ref, RemoveCmdShell.ALIAS): method_args = MethodHelper.get_documented_arguments( method_ref=getattr(obj_typ_ref, RemoveCmdShell.ALIAS), as_params_collection=True, spilt_or=True ) if method_args: specific_options[key if key is not None else obj] = method_args
def __add_resource_specific_options(self, obj, specific_options, line, key=None): obj_coll_type = TypeHelper.getDecoratorType(TypeHelper.to_plural(obj)) if obj_coll_type: if hasattr(brokers, obj_coll_type): obj_coll = getattr(brokers, obj_coll_type) if obj_coll and hasattr(obj_coll, ShowCmdShell.ALIAS): method_args = MethodHelper.get_documented_arguments(method_ref=getattr(obj_coll, ShowCmdShell.ALIAS), as_params_collection=True, spilt_or=True) if method_args: specific_options[obj if key == None else key] = method_args
def __add_resource_specific_options(self, obj, specific_options, line, key=None): obj_coll_type = TypeHelper.getDecoratorType(TypeHelper.to_plural(obj)) if obj_coll_type: if hasattr(brokers, obj_coll_type): obj_coll = getattr(brokers, obj_coll_type) if obj_coll and hasattr(obj_coll, AddCmdShell.NAME): method_args = MethodHelper.get_documented_arguments(method_ref=getattr(obj_coll, AddCmdShell.NAME), as_params_collection=True, spilt_or=True) if method_args: specific_options[obj if key == None else key] = method_args
def __add_resource_specific_options(self, obj, specific_options, line, key=None): obj_type = TypeHelper.getDecoratorType(TypeHelper.to_singular(obj)) if obj_type and hasattr(brokers, obj_type): obj_typ_ref = getattr(brokers, obj_type) if obj_typ_ref and hasattr(obj_typ_ref, UpdateCmdShell.NAME): method_args = MethodHelper.get_documented_arguments( method_ref=getattr(obj_typ_ref, UpdateCmdShell.NAME), as_params_collection=True, spilt_or=True) if method_args: specific_options[ key if key is not None else obj] = method_args
def __add_resource_specific_options(self, obj, specific_options, line, key=None): obj_coll_type = TypeHelper.getDecoratorType(TypeHelper.to_plural(obj)) if obj_coll_type: if hasattr(brokers, obj_coll_type): obj_coll = getattr(brokers, obj_coll_type) if obj_coll and hasattr(obj_coll, ShowCmdShell.ALIAS): method_args = MethodHelper.get_documented_arguments( method_ref=getattr(obj_coll, ShowCmdShell.ALIAS), as_params_collection=True, spilt_or=True) if method_args: method_args = [ x for x in method_args if x not in ['id', 'name'] ] specific_options[obj if key == None else key] = method_args