Lines Matching +full:redfish +full:- +full:mapping

17  * This is an auto-generated header which contains definitions
18 * for Redfish DMTF defined messages.
28 ] = """// SPDX-License-Identifier: Apache-2.0
29 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
37 // clang-format off
39 namespace redfish::registries
50 os.path.join(SCRIPT_DIR, "..", "redfish-core", "include", "registries")
62 ) -> RegistryInfo:
63 url = "https://redfish.dmtf.org/registries/{}".format(dmtf_name)
71 def openbmc_local_getter() -> RegistryInfo:
72 …url = "https://raw.githubusercontent.com/openbmc/bmcweb/refs/heads/master/redfish-core/include/reg…
77 "redfish-core",
90 def update_registries(files: t.List[RegistryInfo]) -> None:
107 ' "{json_dict[@Redfish.Copyright]}",\n'
178 registry.write("} // namespace redfish::registries\n")
183 ) -> str:
197 privilege_string = privilege_string[:-2]
200 privilege_string = privilege_string[:-2]
207 ) -> str:
224 // clang-format off
226 namespace redfish::privileges
232 def get_response_code(entry_id: str) -> str | None:
283 ) -> str:
346 …out += f"std::string arg{index}Str = arg{index}.dump(-1, ' ', true, nlohmann::json::error_handler_…
365 …out += f" return getLog(redfish::registries::{struct_name}::Index::{function_name}, {arg_param}…
432 ) -> None:
438 SCRIPT_DIR, "..", "redfish-core", "include", f"{base_filename}.hpp"
452 // NOLINTBEGIN(misc-include-cleaner)
461 // NOLINTEND(misc-include-cleaner)
463 namespace redfish
502 SCRIPT_DIR, "..", "redfish-core", "src", f"{base_filename}.cpp"
539 // NOLINTNEXTLINE(misc-include-cleaner)
541 // NOLINTNEXTLINE(misc-include-cleaner)
543 // NOLINTNEXTLINE(misc-include-cleaner)
546 namespace redfish
555 static nlohmann::json::object_t getLog(redfish::registries::{struct_name}::Index name,
559 if (index >= redfish::registries::{struct_name}::registry.size())
563 return getLogFromRegistry(redfish::registries::{struct_name}::header,
564 redfish::registries::{struct_name}::registry, index, args);
591 os.system(f"clang-format -i {error_messages_hpp} {error_messages_cpp}")
594 def make_privilege_registry() -> None:
604 for mapping in json_file["Mappings"]:
606 for operation, privilege_list in mapping["OperationMap"].items():
613 if "SubordinateOverrides" in mapping:
614 for subordinateOverride in mapping["SubordinateOverrides"]:
635 for mapping in json_file["Mappings"]:
636 entity = mapping["Entity"]
638 for operation, privilege_list in mapping["OperationMap"].items():
650 if "SubordinateOverrides" in mapping:
651 for subordinateOverrides in mapping["SubordinateOverrides"]:
656 registry.write(target + " -> ")
677 "} // namespace redfish::privileges\n// clang-format on\n"
681 def to_pascal_case(text: str) -> str:
689 def main() -> None:
715 "--registries",