blob: 88ecaaab467757ff5b2e214b68f7334858882be6 [file] [log] [blame]
#ifndef THIRD_PARTY_MILOTIC_INTERNAL_CC_PROXY_REDFISH_RESOURCE_H_
#define THIRD_PARTY_MILOTIC_INTERNAL_CC_PROXY_REDFISH_RESOURCE_H_
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "nlohmann/json_fwd.hpp"
#include "proxy.h"
namespace milotic {
struct RedfishExpand {
bool expand_links = false;
bool expand_non_links = false;
int levels = 1;
};
absl::StatusOr<nlohmann::json> GetRedfishResource(Proxy* proxy,
absl::string_view id,
RedfishExpand expand = {});
} // namespace milotic
#endif // THIRD_PARTY_MILOTIC_INTERNAL_CC_PROXY_REDFISH_RESOURCE_H_