From d596897ca681368355445c2a2e460d7bd08f0b42 Mon Sep 17 00:00:00 2001 From: Leela Satyavathi Pentakota <106110313+leelasatyavathip@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:46:11 +0530 Subject: [PATCH] added naming convention support for search service module (#269) --- README.md | 2 +- azurecaf/models_generated.go | 4 +++- resourceDefinition.json | 11 +++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33f91b8..7e3608e 100644 --- a/README.md +++ b/README.md @@ -622,7 +622,7 @@ This is the current compreheensive status of the implemented resources in the pr |azurerm_route_filter | ❌ | |azurerm_route_server | ✔ | |azurerm_route_table | ✔ | -|azurerm_search_service | ❌ | +|azurerm_search_service | ✔ | |azurerm_security_center_auto_provisioning | ❌ | |azurerm_security_center_automation | ❌ | |azurerm_security_center_contact | ❌ | diff --git a/azurecaf/models_generated.go b/azurecaf/models_generated.go index 75f1c2b..8899238 100644 --- a/azurecaf/models_generated.go +++ b/azurecaf/models_generated.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. // This file was generated by robots at -// 2023-10-09 13:39:02.070801383 +0200 CEST m=+0.003033148 +// 2024-01-11 23:57:14.3707123 +0530 IST m=+0.064864301 // using data from // resourceDefinition.json and resourceDefinition_out_of_docs.json @@ -299,6 +299,7 @@ var ResourceDefinitions = map[string]ResourceStructure{ "azurerm_route": {"azurerm_route", "rt", 1, 80, false, "[^0-9A-Za-z_.-]", "^[a-zA-Z0-9][a-zA-Z0-9-._]{0,78}[a-zA-Z0-9_]$", true, "parent"}, "azurerm_route_server": {"azurerm_route_server", "rts", 1, 80, false, "[^0-9A-Za-z_.-]", "^[a-zA-Z0-9][a-zA-Z0-9-._]{0,78}[a-zA-Z0-9_]$", true, "resourceGroup"}, "azurerm_route_table": {"azurerm_route_table", "route", 1, 80, false, "[^0-9A-Za-z_.-]", "^[a-zA-Z0-9][a-zA-Z0-9-._]{0,78}[a-zA-Z0-9_]$", true, "resourceGroup"}, + "azurerm_search_service": {"azurerm_search_service", "srch", 2, 60, true, "[a-z0-9-]*--[a-z0-9-]*$", "^[a-z0-9](?:[a-z0-9-]{0,58}[a-z0-9])?$", true, "global"}, "azurerm_service_fabric_cluster": {"azurerm_service_fabric_cluster", "sf", 4, 23, true, "[^0-9a-z-]", "^[a-z][a-z0-9-]{2,21}[a-z0-9]$", true, "region"}, "azurerm_servicebus_namespace": {"azurerm_servicebus_namespace", "sb", 6, 50, false, "[^0-9A-Za-z-]", "^[a-zA-Z][a-zA-Z0-9-]{4,48}[a-zA-Z0-9]$", true, "global"}, "azurerm_servicebus_namespace_authorization_rule": {"azurerm_servicebus_namespace_authorization_rule", "sbar", 1, 50, false, "[^0-9A-Za-z_.-]", "^[a-zA-Z0-9][a-zA-Z0-9-._]{0,48}[a-zA-Z0-9]$", true, "parent"}, @@ -691,6 +692,7 @@ var ResourceMaps = map[string]string{ "sqlfg": "azurerm_sql_failover_group", "sqlfw": "azurerm_sql_firewall_rule", "sqlmi": "azurerm_mssql_mi", + "srch": "azurerm_search_service", "st": "azurerm_storage_account", "stapp": "azurerm_static_site", "stct": "azurerm_storage_container", diff --git a/resourceDefinition.json b/resourceDefinition.json index b722330..3b19999 100644 --- a/resourceDefinition.json +++ b/resourceDefinition.json @@ -451,6 +451,17 @@ "lowercase": false, "regex": "\"[^0-9A-Za-z-]\"" }, + { + "name": "azurerm_search_service", + "min_length": 2, + "max_length": 60, + "validation_regex": "\"^[a-z0-9](?:[a-z0-9-]{0,58}[a-z0-9])?$\"", + "scope": "global", + "slug": "srch", + "dashes": true, + "lowercase": true, + "regex": "\"[a-z0-9-]*--[a-z0-9-]*$\"" + }, { "name": "azurerm_availability_set", "min_length": 1,