/src/connectedhomeip/zzz_generated/app-common/clusters/TlsClientManagement/Commands.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-Commands.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/data-model/DecodableList.h> |
24 | | #include <app/data-model/Encode.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/NullObject.h> |
27 | | #include <app/data-model/Nullable.h> |
28 | | #include <lib/core/DataModelTypes.h> |
29 | | #include <lib/core/Optional.h> |
30 | | #include <lib/core/TLV.h> |
31 | | #include <lib/support/BitMask.h> |
32 | | |
33 | | #include <clusters/shared/Enums.h> |
34 | | #include <clusters/shared/Structs.h> |
35 | | |
36 | | #include <clusters/TlsClientManagement/ClusterId.h> |
37 | | #include <clusters/TlsClientManagement/CommandIds.h> |
38 | | #include <clusters/TlsClientManagement/Enums.h> |
39 | | #include <clusters/TlsClientManagement/Structs.h> |
40 | | |
41 | | #include <cstdint> |
42 | | |
43 | | namespace chip { |
44 | | namespace app { |
45 | | namespace Clusters { |
46 | | namespace TlsClientManagement { |
47 | | namespace Commands { |
48 | | // Forward-declarations so we can reference these later. |
49 | | |
50 | | namespace ProvisionEndpoint { |
51 | | struct Type; |
52 | | struct DecodableType; |
53 | | } // namespace ProvisionEndpoint |
54 | | |
55 | | namespace ProvisionEndpointResponse { |
56 | | struct Type; |
57 | | struct DecodableType; |
58 | | } // namespace ProvisionEndpointResponse |
59 | | |
60 | | namespace FindEndpoint { |
61 | | struct Type; |
62 | | struct DecodableType; |
63 | | } // namespace FindEndpoint |
64 | | |
65 | | namespace FindEndpointResponse { |
66 | | struct Type; |
67 | | struct DecodableType; |
68 | | } // namespace FindEndpointResponse |
69 | | |
70 | | namespace RemoveEndpoint { |
71 | | struct Type; |
72 | | struct DecodableType; |
73 | | } // namespace RemoveEndpoint |
74 | | |
75 | | } // namespace Commands |
76 | | |
77 | | namespace Commands { |
78 | | namespace ProvisionEndpoint { |
79 | | enum class Fields : uint8_t |
80 | | { |
81 | | kHostname = 0, |
82 | | kPort = 1, |
83 | | kCaid = 2, |
84 | | kCcdid = 3, |
85 | | kEndpointID = 4, |
86 | | }; |
87 | | |
88 | | struct Type |
89 | | { |
90 | | public: |
91 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
92 | 0 | static constexpr CommandId GetCommandId() { return Commands::ProvisionEndpoint::Id; } |
93 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
94 | | |
95 | | chip::ByteSpan hostname; |
96 | | uint16_t port = static_cast<uint16_t>(0); |
97 | | uint16_t caid = static_cast<uint16_t>(0); |
98 | | DataModel::Nullable<uint16_t> ccdid; |
99 | | DataModel::Nullable<uint16_t> endpointID; |
100 | | |
101 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
102 | | |
103 | | using ResponseType = Clusters::TlsClientManagement::Commands::ProvisionEndpointResponse::DecodableType; |
104 | | |
105 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
106 | | }; |
107 | | |
108 | | struct DecodableType |
109 | | { |
110 | | public: |
111 | 0 | static constexpr CommandId GetCommandId() { return Commands::ProvisionEndpoint::Id; } |
112 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
113 | | static constexpr bool kIsFabricScoped = true; |
114 | | |
115 | | chip::ByteSpan hostname; |
116 | | uint16_t port = static_cast<uint16_t>(0); |
117 | | uint16_t caid = static_cast<uint16_t>(0); |
118 | | DataModel::Nullable<uint16_t> ccdid; |
119 | | DataModel::Nullable<uint16_t> endpointID; |
120 | | |
121 | | CHIP_ERROR Decode(TLV::TLVReader & reader, FabricIndex aAccessingFabricIndex); |
122 | | }; |
123 | | }; // namespace ProvisionEndpoint |
124 | | namespace ProvisionEndpointResponse { |
125 | | enum class Fields : uint8_t |
126 | | { |
127 | | kEndpointID = 0, |
128 | | }; |
129 | | |
130 | | struct Type |
131 | | { |
132 | | public: |
133 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
134 | 0 | static constexpr CommandId GetCommandId() { return Commands::ProvisionEndpointResponse::Id; } |
135 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
136 | | |
137 | | uint16_t endpointID = static_cast<uint16_t>(0); |
138 | | |
139 | | CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const; |
140 | | |
141 | | using ResponseType = DataModel::NullObjectType; |
142 | | |
143 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
144 | | }; |
145 | | |
146 | | struct DecodableType |
147 | | { |
148 | | public: |
149 | 0 | static constexpr CommandId GetCommandId() { return Commands::ProvisionEndpointResponse::Id; } |
150 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
151 | | |
152 | | uint16_t endpointID = static_cast<uint16_t>(0); |
153 | | |
154 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
155 | | }; |
156 | | }; // namespace ProvisionEndpointResponse |
157 | | namespace FindEndpoint { |
158 | | enum class Fields : uint8_t |
159 | | { |
160 | | kEndpointID = 0, |
161 | | }; |
162 | | |
163 | | struct Type |
164 | | { |
165 | | public: |
166 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
167 | 0 | static constexpr CommandId GetCommandId() { return Commands::FindEndpoint::Id; } |
168 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
169 | | |
170 | | uint16_t endpointID = static_cast<uint16_t>(0); |
171 | | |
172 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
173 | | |
174 | | using ResponseType = Clusters::TlsClientManagement::Commands::FindEndpointResponse::DecodableType; |
175 | | |
176 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
177 | | }; |
178 | | |
179 | | struct DecodableType |
180 | | { |
181 | | public: |
182 | 0 | static constexpr CommandId GetCommandId() { return Commands::FindEndpoint::Id; } |
183 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
184 | | static constexpr bool kIsFabricScoped = true; |
185 | | |
186 | | uint16_t endpointID = static_cast<uint16_t>(0); |
187 | | |
188 | | CHIP_ERROR Decode(TLV::TLVReader & reader, FabricIndex aAccessingFabricIndex); |
189 | | }; |
190 | | }; // namespace FindEndpoint |
191 | | namespace FindEndpointResponse { |
192 | | enum class Fields : uint8_t |
193 | | { |
194 | | kEndpoint = 0, |
195 | | }; |
196 | | |
197 | | struct Type |
198 | | { |
199 | | public: |
200 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
201 | 0 | static constexpr CommandId GetCommandId() { return Commands::FindEndpointResponse::Id; } |
202 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
203 | | |
204 | | Structs::TLSEndpointStruct::Type endpoint; |
205 | | |
206 | | CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const; |
207 | | |
208 | | using ResponseType = DataModel::NullObjectType; |
209 | | |
210 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
211 | | }; |
212 | | |
213 | | struct DecodableType |
214 | | { |
215 | | public: |
216 | 0 | static constexpr CommandId GetCommandId() { return Commands::FindEndpointResponse::Id; } |
217 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
218 | | |
219 | | Structs::TLSEndpointStruct::DecodableType endpoint; |
220 | | |
221 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
222 | | }; |
223 | | }; // namespace FindEndpointResponse |
224 | | namespace RemoveEndpoint { |
225 | | enum class Fields : uint8_t |
226 | | { |
227 | | kEndpointID = 0, |
228 | | }; |
229 | | |
230 | | struct Type |
231 | | { |
232 | | public: |
233 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
234 | 0 | static constexpr CommandId GetCommandId() { return Commands::RemoveEndpoint::Id; } |
235 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
236 | | |
237 | | uint16_t endpointID = static_cast<uint16_t>(0); |
238 | | |
239 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
240 | | |
241 | | using ResponseType = DataModel::NullObjectType; |
242 | | |
243 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
244 | | }; |
245 | | |
246 | | struct DecodableType |
247 | | { |
248 | | public: |
249 | 0 | static constexpr CommandId GetCommandId() { return Commands::RemoveEndpoint::Id; } |
250 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::TlsClientManagement::Id; } |
251 | | static constexpr bool kIsFabricScoped = true; |
252 | | |
253 | | uint16_t endpointID = static_cast<uint16_t>(0); |
254 | | |
255 | | CHIP_ERROR Decode(TLV::TLVReader & reader, FabricIndex aAccessingFabricIndex); |
256 | | }; |
257 | | }; // namespace RemoveEndpoint |
258 | | } // namespace Commands |
259 | | } // namespace TlsClientManagement |
260 | | } // namespace Clusters |
261 | | } // namespace app |
262 | | } // namespace chip |