You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This description is used by the documentation generator and the language server.
57
-
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Categories.").String,
59
+
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Categories.").AddMinimumVersionHeaderDescription().AddMinimumVersionDescription("7.4").String,
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("UnsupportedVersion: FMC version %s does not support File Categories, minimum required version is 7.4", d.client.FMCVersion))
// This description is used by the documentation generator and the language server.
62
-
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Category.").String,
64
+
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Category.").AddMinimumVersionHeaderDescription().AddMinimumVersionDescription("7.4").String,
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("UnsupportedVersion: FMC version %s does not support File Category, minimum required version is 7.4", d.client.FMCVersion))
// This description is used by the documentation generator and the language server.
62
-
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Type.").String,
64
+
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Type.").AddMinimumVersionHeaderDescription().AddMinimumVersionDescription("7.4").String,
// Check if FMC client is connected to supports this object
114
+
iffmcVersion.LessThan(minFMCVersionFileType) {
115
+
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("UnsupportedVersion: FMC version %s does not support File Type, minimum required version is 7.4", d.client.FMCVersion))
// This description is used by the documentation generator and the language server.
57
-
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Types.").String,
59
+
MarkdownDescription: helpers.NewAttributeDescription("This data source reads the File Types.").AddMinimumVersionHeaderDescription().AddMinimumVersionDescription("7.4").String,
// Check if FMC client is connected to supports this object
108
+
iffmcVersion.LessThan(minFMCVersionFileTypes) {
109
+
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("UnsupportedVersion: FMC version %s does not support File Types, minimum required version is 7.4", d.client.FMCVersion))
0 commit comments