diff --git a/apstra/analytics/telemetry_service_registry_entry.go b/apstra/analytics/telemetry_service_registry_entry.go index 1b19553f..a4ad3083 100644 --- a/apstra/analytics/telemetry_service_registry_entry.go +++ b/apstra/analytics/telemetry_service_registry_entry.go @@ -71,11 +71,11 @@ func (o TelemetryServiceRegistryEntry) ResourceAttributes() map[string]resourceS Required: true, }, "storage_schema_path": resourceSchema.StringAttribute{ - MarkdownDescription: "Storage Schema Path. Must be one of:\n - " + strings.Join(utils.AllStorageSchemaPaths(), "\n - ") + "\n", + MarkdownDescription: "Storage Schema Path. Must be one of:\n - " + strings.Join([]string{utils.StringersToFriendlyString(apstra.StorageSchemaPathIBA_STRING_DATA), utils.StringersToFriendlyString(apstra.StorageSchemaPathIBA_INTEGER_DATA)}, "\n - ") + "\n", Required: true, Validators: []validator.String{ stringvalidator.LengthAtLeast(1), - stringvalidator.OneOf(utils.AllStorageSchemaPaths()...), + stringvalidator.OneOf(utils.StringersToFriendlyString(apstra.StorageSchemaPathIBA_STRING_DATA), utils.StringersToFriendlyString(apstra.StorageSchemaPathIBA_INTEGER_DATA)), }, }, "description": resourceSchema.StringAttribute{ diff --git a/docs/resources/telemetry_service_registry_entry.md b/docs/resources/telemetry_service_registry_entry.md index 17004d7f..9263184c 100644 --- a/docs/resources/telemetry_service_registry_entry.md +++ b/docs/resources/telemetry_service_registry_entry.md @@ -94,26 +94,8 @@ output "r" { - `application_schema` (String) Application Schema expressed in JSON - `name` (String) Service Name. Used to identify the Service. - `storage_schema_path` (String) Storage Schema Path. Must be one of: - - arp - - bgp - - cpp_graph - - environment - - generic - - graph - - hostname - - iba_integer_data - iba_string_data - - interface - - interface_counters - - lag - - lldp - - mac - - mlag - - nsxt - - optical_xcvr - - route - - route_lookup - - xcvr + - iba_integer_data ### Optional