// DO NOT EDIT MANUALLY - Generated file
//
// Cluster metadata information for cluster OtaSoftwareUpdateRequestor (cluster code: 42/0x2A)
// based on src/controller/data_model/controller-clusters.matter
#pragma once

#include <app/data-model-provider/MetadataTypes.h>
#include <array>
#include <lib/core/DataModelTypes.h>

#include <cstdint>

#include <clusters/OtaSoftwareUpdateRequestor/Ids.h>

namespace chip {
namespace app {
namespace Clusters {
namespace OtaSoftwareUpdateRequestor {

inline constexpr uint32_t kRevision = 1;

namespace Attributes {

namespace DefaultOTAProviders {
inline constexpr DataModel::AttributeEntry
    kMetadataEntry(DefaultOTAProviders::Id,
                   BitFlags<DataModel::AttributeQualityFlags>(DataModel::AttributeQualityFlags::kListAttribute),
                   Access::Privilege::kView, Access::Privilege::kAdminister);
} // namespace DefaultOTAProviders
namespace UpdatePossible {
inline constexpr DataModel::AttributeEntry kMetadataEntry(UpdatePossible::Id, BitFlags<DataModel::AttributeQualityFlags>(),
                                                          Access::Privilege::kView, std::nullopt);
} // namespace UpdatePossible
namespace UpdateState {
inline constexpr DataModel::AttributeEntry kMetadataEntry(UpdateState::Id, BitFlags<DataModel::AttributeQualityFlags>(),
                                                          Access::Privilege::kView, std::nullopt);
} // namespace UpdateState
namespace UpdateStateProgress {
inline constexpr DataModel::AttributeEntry kMetadataEntry(UpdateStateProgress::Id, BitFlags<DataModel::AttributeQualityFlags>(),
                                                          Access::Privilege::kView, std::nullopt);
} // namespace UpdateStateProgress
constexpr std::array<DataModel::AttributeEntry, 4> kMandatoryMetadata = {
    DefaultOTAProviders::kMetadataEntry,
    UpdatePossible::kMetadataEntry,
    UpdateState::kMetadataEntry,
    UpdateStateProgress::kMetadataEntry,

};

} // namespace Attributes

namespace Commands {

namespace AnnounceOTAProvider {
inline constexpr DataModel::AcceptedCommandEntry kMetadataEntry(AnnounceOTAProvider::Id, BitFlags<DataModel::CommandQualityFlags>(),
                                                                Access::Privilege::kAdminister);
} // namespace AnnounceOTAProvider

} // namespace Commands

namespace Events {
namespace StateTransition {
inline constexpr DataModel::EventEntry kMetadataEntry{ Access::Privilege::kView };
} // namespace StateTransition
namespace VersionApplied {
inline constexpr DataModel::EventEntry kMetadataEntry{ Access::Privilege::kView };
} // namespace VersionApplied
namespace DownloadError {
inline constexpr DataModel::EventEntry kMetadataEntry{ Access::Privilege::kView };
} // namespace DownloadError

} // namespace Events
} // namespace OtaSoftwareUpdateRequestor
} // namespace Clusters
} // namespace app
} // namespace chip
