/src/connectedhomeip/zzz_generated/app-common/clusters/TlsCertificateManagement/Attributes.h
Line | Count | Source |
1 | | /* |
2 | | * |
3 | | * Copyright (c) 2022 Project CHIP Authors |
4 | | * |
5 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | | * you may not use this file except in compliance with the License. |
7 | | * You may obtain a copy of the License at |
8 | | * |
9 | | * http://www.apache.org/licenses/LICENSE-2.0 |
10 | | * |
11 | | * Unless required by applicable law or agreed to in writing, software |
12 | | * distributed under the License is distributed on an "AS IS" BASIS, |
13 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | | * See the License for the specific language governing permissions and |
15 | | * limitations under the License. |
16 | | */ |
17 | | |
18 | | // THIS FILE IS GENERATED BY ZAP |
19 | | // This file is generated from clusters-Attributes.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/ConcreteAttributePath.h> |
24 | | #include <app/data-model/DecodableList.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/Nullable.h> |
27 | | #include <app/util/basic-types.h> |
28 | | #include <lib/core/TLV.h> |
29 | | #include <lib/support/BitMask.h> |
30 | | |
31 | | #include <clusters/shared/Attributes.h> |
32 | | #include <clusters/shared/Enums.h> |
33 | | #include <clusters/shared/Structs.h> |
34 | | |
35 | | #include <clusters/TlsCertificateManagement/AttributeIds.h> |
36 | | #include <clusters/TlsCertificateManagement/ClusterId.h> |
37 | | #include <clusters/TlsCertificateManagement/Enums.h> |
38 | | #include <clusters/TlsCertificateManagement/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace TlsCertificateManagement { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace MaxRootCertificates { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = uint8_t; |
50 | | using DecodableType = uint8_t; |
51 | | using DecodableArgType = uint8_t; |
52 | | |
53 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
54 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxRootCertificates::Id; } |
55 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
56 | | }; |
57 | | } // namespace MaxRootCertificates |
58 | | namespace ProvisionedRootCertificates { |
59 | | struct TypeInfo |
60 | | { |
61 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::TlsCertificateManagement::Structs::TLSCertStruct::Type>; |
62 | | using DecodableType = |
63 | | chip::app::DataModel::DecodableList<chip::app::Clusters::TlsCertificateManagement::Structs::TLSCertStruct::DecodableType>; |
64 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
65 | | chip::app::Clusters::TlsCertificateManagement::Structs::TLSCertStruct::DecodableType> &; |
66 | | |
67 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
68 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ProvisionedRootCertificates::Id; } |
69 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
70 | | }; |
71 | | } // namespace ProvisionedRootCertificates |
72 | | namespace MaxClientCertificates { |
73 | | struct TypeInfo |
74 | | { |
75 | | using Type = uint8_t; |
76 | | using DecodableType = uint8_t; |
77 | | using DecodableArgType = uint8_t; |
78 | | |
79 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
80 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxClientCertificates::Id; } |
81 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
82 | | }; |
83 | | } // namespace MaxClientCertificates |
84 | | namespace ProvisionedClientCertificates { |
85 | | struct TypeInfo |
86 | | { |
87 | | using Type = chip::app::DataModel::List< |
88 | | const chip::app::Clusters::TlsCertificateManagement::Structs::TLSClientCertificateDetailStruct::Type>; |
89 | | using DecodableType = chip::app::DataModel::DecodableList< |
90 | | chip::app::Clusters::TlsCertificateManagement::Structs::TLSClientCertificateDetailStruct::DecodableType>; |
91 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
92 | | chip::app::Clusters::TlsCertificateManagement::Structs::TLSClientCertificateDetailStruct::DecodableType> &; |
93 | | |
94 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
95 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ProvisionedClientCertificates::Id; } |
96 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
97 | | }; |
98 | | } // namespace ProvisionedClientCertificates |
99 | | namespace GeneratedCommandList { |
100 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
101 | | { |
102 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
103 | | }; |
104 | | } // namespace GeneratedCommandList |
105 | | namespace AcceptedCommandList { |
106 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
107 | | { |
108 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
109 | | }; |
110 | | } // namespace AcceptedCommandList |
111 | | namespace AttributeList { |
112 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
113 | | { |
114 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
115 | | }; |
116 | | } // namespace AttributeList |
117 | | namespace FeatureMap { |
118 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
119 | | { |
120 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
121 | | }; |
122 | | } // namespace FeatureMap |
123 | | namespace ClusterRevision { |
124 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
125 | | { |
126 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
127 | | }; |
128 | | } // namespace ClusterRevision |
129 | | |
130 | | struct TypeInfo |
131 | | { |
132 | | struct DecodableType |
133 | | { |
134 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsCertificateManagement::Id; } |
135 | | |
136 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
137 | | |
138 | | Attributes::MaxRootCertificates::TypeInfo::DecodableType maxRootCertificates = static_cast<uint8_t>(0); |
139 | | Attributes::ProvisionedRootCertificates::TypeInfo::DecodableType provisionedRootCertificates; |
140 | | Attributes::MaxClientCertificates::TypeInfo::DecodableType maxClientCertificates = static_cast<uint8_t>(0); |
141 | | Attributes::ProvisionedClientCertificates::TypeInfo::DecodableType provisionedClientCertificates; |
142 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
143 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
144 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
145 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
146 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
147 | | }; |
148 | | }; |
149 | | } // namespace Attributes |
150 | | } // namespace TlsCertificateManagement |
151 | | } // namespace Clusters |
152 | | } // namespace app |
153 | | } // namespace chip |