blob: 697dc99a6b1c99c7fed0779cef866f776f478062 [file] [log] [blame]
// DO NOT EDIT MANUALLY - Generated file
//
// Cluster metadata information for cluster GroupKeyManagement (cluster code: 63/0x3F)
// based on src/controller/data_model/controller-clusters.matter
#pragma once
#include <optional>
#include <app/data-model-provider/ClusterMetadataProvider.h>
#include <app/data-model-provider/MetadataTypes.h>
#include <clusters/GroupKeyManagement/Ids.h>
#include <clusters/GroupKeyManagement/Metadata.h>
namespace chip {
namespace app {
namespace DataModel {
template <>
struct ClusterMetadataProvider<DataModel::AttributeEntry, Clusters::GroupKeyManagement::Id>
{
static constexpr std::optional<DataModel::AttributeEntry> EntryFor(AttributeId attributeId)
{
using namespace Clusters::GroupKeyManagement::Attributes;
switch (attributeId)
{
case GroupKeyMap::Id:
return GroupKeyMap::kMetadataEntry;
case GroupTable::Id:
return GroupTable::kMetadataEntry;
case MaxGroupsPerFabric::Id:
return MaxGroupsPerFabric::kMetadataEntry;
case MaxGroupKeysPerFabric::Id:
return MaxGroupKeysPerFabric::kMetadataEntry;
case GroupcastAdoption::Id:
return GroupcastAdoption::kMetadataEntry;
default:
return std::nullopt;
}
}
};
template <>
struct ClusterMetadataProvider<DataModel::AcceptedCommandEntry, Clusters::GroupKeyManagement::Id>
{
static constexpr std::optional<DataModel::AcceptedCommandEntry> EntryFor(CommandId commandId)
{
using namespace Clusters::GroupKeyManagement::Commands;
switch (commandId)
{
case KeySetWrite::Id:
return KeySetWrite::kMetadataEntry;
case KeySetRead::Id:
return KeySetRead::kMetadataEntry;
case KeySetRemove::Id:
return KeySetRemove::kMetadataEntry;
case KeySetReadAllIndices::Id:
return KeySetReadAllIndices::kMetadataEntry;
default:
return std::nullopt;
}
}
};
} // namespace DataModel
} // namespace app
} // namespace chip