Add authorization for AsicAgingData Redfish Resource
BEGIN_PUBLIC
Adds authorizer enums for the Google entry GoogleAsicAgingData
END_PUBLIC
Adds Oem schemas for GoogleAsicAgingData
blaze test //third_party/milotic/external/cc/authz:all
blaze test //third_party/milotic/internal/cc/authz:all
integration-test-bug-id: 424227084
added-testdata-queries: Already tested via ALL_URIS
Tested:
https://paste.googleplex.com/5199331233366016
PiperOrigin-RevId: 782036106
Change-Id: I65ba0e10fa4149fbfa11ba24d6ef3750e32b6e96
diff --git a/redfish_authorization/authorizer_enums.cc b/redfish_authorization/authorizer_enums.cc
index 2ee6573..dfbe193 100644
--- a/redfish_authorization/authorizer_enums.cc
+++ b/redfish_authorization/authorizer_enums.cc
@@ -98,6 +98,7 @@
"FacilityCollection",
"Fan",
"FanCollection",
+ "GoogleAsicAgingData",
"GoogleAsicErrorCounters",
"GoogleAsicFleetCounters",
"GoogleAsicHbmErrors",
diff --git a/redfish_authorization/authorizer_enums.h b/redfish_authorization/authorizer_enums.h
index fde8077..de8bcd8 100644
--- a/redfish_authorization/authorizer_enums.h
+++ b/redfish_authorization/authorizer_enums.h
@@ -93,6 +93,7 @@
kFacilityCollection,
kFan,
kFanCollection,
+ kGoogleAsicAgingData,
kGoogleAsicErrorCounters,
kGoogleAsicFleetCounters,
kGoogleAsicHbmErrors,
diff --git a/redfish_authorization/pattern_to_entity_array.h b/redfish_authorization/pattern_to_entity_array.h
index 37b9587..29df201 100644
--- a/redfish_authorization/pattern_to_entity_array.h
+++ b/redfish_authorization/pattern_to_entity_array.h
@@ -18,7 +18,7 @@
namespace milotic::authz
{
using ::ecclesia::ResourceEntity;
-inline constexpr std::array<std::pair<std::string_view, ResourceEntity>, 8166> pattern_entity_pair_array {{
+inline constexpr std::array<std::pair<std::string_view, ResourceEntity>, 8167> pattern_entity_pair_array {{
{"/google/v1", ResourceEntity::kServiceRoot},
{"/google/v1/JsonSchemas", ResourceEntity::kJsonSchemaFileCollection},
{"/google/v1/JsonSchemas/{JsonSchemaFileId}", ResourceEntity::kJsonSchemaFile},
@@ -7705,6 +7705,7 @@
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/MemorySummary/MemoryMetrics", ResourceEntity::kMemoryMetrics},
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/MemorySummary/MemoryMetrics/Actions/MemoryMetrics.ClearCurrentPeriod", ResourceEntity::kMemoryMetrics},
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/MemorySummary/MemoryMetrics/ClearCurrentPeriodActionInfo", ResourceEntity::kActionInfo},
+ {"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/Oem/Google/AsicAgingData", ResourceEntity::kGoogleAsicAgingData},
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/Oem/Google/AsicErrorCounters", ResourceEntity::kGoogleAsicErrorCounters},
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/Oem/Google/AsicFleetCounters", ResourceEntity::kGoogleAsicFleetCounters},
{"/redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/Oem/Google/AsicHbmErrors", ResourceEntity::kGoogleAsicHbmErrors},