@@ -28,6 +28,8 @@ type Class struct {
28
28
Children []Child
29
29
// List of all possible parent classes.
30
30
ContainedBy []string
31
+ // Deprecated resources include a warning the resource and datasource schemas.
32
+ Deprecated bool
31
33
// The APIC versions in which the class is deprecated.
32
34
DeprecatedVersions []VersionRange
33
35
// Documentation specific information for the class.
@@ -179,16 +181,44 @@ func (c *Class) loadMetaFile() error {
179
181
func (c * Class ) setClassData () error {
180
182
genLogger .Debug (fmt .Sprintf ("Setting class data for class '%s'." , c .ClassName ))
181
183
184
+ // TODO: add function to set AllowDelete
185
+
186
+ // TODO: add function to set Children
187
+
188
+ // TODO: add function to set ContainedBy
189
+
190
+ // TODO: add placeholder function for Deprecated
191
+
192
+ // TODO: add placeholder function for DeprecatedVersions
193
+
194
+ // TODO: add function to set Documentation
195
+
196
+ // TODO: add function to set IdentifiedBy
197
+
198
+ // TODO: add function to set IsMigration
199
+
200
+ // TODO: add function to set IsRelational
201
+
202
+ // TODO: add function to set IsSingleNested
203
+
204
+ // TODO: add function to set PlatformType
205
+
206
+ if properties , ok := c .MetaFileContent ["properties" ]; ok {
207
+ c .setProperties (properties .(map [string ]interface {}))
208
+ }
209
+
210
+ // TODO: add function to set RequiredAsChild
211
+
182
212
err := c .setResourceName ()
183
213
if err != nil {
184
214
return err
185
215
}
186
216
187
- // TODO: add functions to set the other class data
217
+ // TODO: add function to set ResourceNameNested
188
218
189
- if properties , ok := c . MetaFileContent [ "properties" ]; ok {
190
- c . setProperties ( properties .( map [ string ] interface {}))
191
- }
219
+ // TODO: add function to set RnFormat
220
+
221
+ // TODO: add function to set Versions
192
222
193
223
genLogger .Debug (fmt .Sprintf ("Successfully set class data for class '%s'." , c .ClassName ))
194
224
return nil
0 commit comments