From 5cff65494c82b7bc74dc8fd526cd765f2bc847f8 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Fri, 13 Sep 2024 13:48:54 +0200 Subject: [PATCH] Xxx->XXX --- .../fix_plugin_azure/resource/cosmosdb.py | 14 +++++++------- .../azure/fix_plugin_azure/resource/mysql.py | 18 +++++++++--------- .../azure/fix_plugin_azure/resource/network.py | 8 ++++---- .../fix_plugin_azure/resource/postgresql.py | 14 +++++++------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/plugins/azure/fix_plugin_azure/resource/cosmosdb.py b/plugins/azure/fix_plugin_azure/resource/cosmosdb.py index a9d9a70a2f..21793cbaff 100644 --- a/plugins/azure/fix_plugin_azure/resource/cosmosdb.py +++ b/plugins/azure/fix_plugin_azure/resource/cosmosdb.py @@ -2392,7 +2392,7 @@ class AzureServerNameItem: @define(eq=False, slots=False) class AzureCosmosDBPostgresqlCluster(MicrosoftResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "cluster", "group": "database"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -2546,7 +2546,7 @@ def post_process(self, graph_builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterServer(MicrosoftResource, BaseDatabase, AzureProxyResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_server" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Server" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Server" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "instance", "group": "database"} # Collect via AzureCosmosDBPostgresqlCluster() @@ -2641,7 +2641,7 @@ def collect_server_configs() -> None: @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterConfiguration(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_configuration" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Configuration" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Configuration" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "networking"} # Collect via AzureCosmosDBPostgresqlCluster() @@ -2679,7 +2679,7 @@ def collect_configs( @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterServerConfiguration(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_server_configuration" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Server Configuration" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Server Configuration" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "database"} # Collect via AzureCosmosDBPostgresqlClusterServer() @@ -2716,7 +2716,7 @@ def collect_configs( @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterPrivateEndpointConnection(MicrosoftResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_private_endpoint_connection" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Private Endpoint Connection" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Private Endpoint Connection" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "endpoint", "group": "networking"} # Collect via AzureCosmosDBPostgresqlCluster() @@ -2742,7 +2742,7 @@ class AzureCosmosDBPostgresqlClusterPrivateEndpointConnection(MicrosoftResource) @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterPrivateLink(MicrosoftResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_private_link" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Private Link" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Private Link" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "link", "group": "networking"} # Collect via AzureCosmosDBPostgresqlCluster() @@ -2766,7 +2766,7 @@ class AzureCosmosDBPostgresqlClusterPrivateLink(MicrosoftResource): @define(eq=False, slots=False) class AzureCosmosDBPostgresqlClusterRole(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_cosmos_db_postgresql_cluster_role" - kind_display: ClassVar[str] = "Azure Cosmos DB Postgresql Cluster Role" + kind_display: ClassVar[str] = "Azure Cosmos DB PostgreSQL Cluster Role" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "role", "group": "access_control"} # Collect via AzureCosmosDBPostgresqlCluster() diff --git a/plugins/azure/fix_plugin_azure/resource/mysql.py b/plugins/azure/fix_plugin_azure/resource/mysql.py index 66c67248ff..980c35d354 100644 --- a/plugins/azure/fix_plugin_azure/resource/mysql.py +++ b/plugins/azure/fix_plugin_azure/resource/mysql.py @@ -105,7 +105,7 @@ class AzureServerMaintenanceWindow: @define(eq=False, slots=False) class AzureMysqlServerADAdministrator(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_ad_administrator" - kind_display: ClassVar[str] = "Azure Mysql Server Ad Administrator" + kind_display: ClassVar[str] = "Azure MySQL Server Ad Administrator" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "user", "group": "database"} # Collect via AzureMysqlServer() @@ -214,7 +214,7 @@ class AzureServerEditionCapability: @define(eq=False, slots=False) class AzureMysqlServerType(MicrosoftResource, BaseDatabaseInstanceType): kind: ClassVar[str] = "azure_mysql_server_type" - kind_display: ClassVar[str] = "Azure Mysql Server Type" + kind_display: ClassVar[str] = "Azure MySQL Server Type" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "type", "group": "database"} # Collect via AzureMysqlServer() @@ -324,7 +324,7 @@ def collect( @define(eq=False, slots=False) class AzureMysqlServerConfiguration(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_configuration" - kind_display: ClassVar[str] = "Azure Mysql Server Configuration" + kind_display: ClassVar[str] = "Azure MySQL Server Configuration" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "database"} # Collect via AzureMysqlServer() @@ -361,7 +361,7 @@ def collect_configs( @define(eq=False, slots=False) class AzureMysqlServerDatabase(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_database" - kind_display: ClassVar[str] = "Azure Mysql Server Database" + kind_display: ClassVar[str] = "Azure MySQL Server Database" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "database", "group": "database"} # Collect via AzureMysqlServer() @@ -385,7 +385,7 @@ class AzureMysqlServerDatabase(MicrosoftResource): @define(eq=False, slots=False) class AzureMysqlServerFirewallRule(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_firewall_rule" - kind_display: ClassVar[str] = "Azure Mysql Server Firewall Rule" + kind_display: ClassVar[str] = "Azure MySQL Server Firewall Rule" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "firewall", "group": "networking"} # Collect via AzureMysqlServer() @@ -409,7 +409,7 @@ class AzureMysqlServerFirewallRule(MicrosoftResource): @define(eq=False, slots=False) class AzureMysqlServerLogFile(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_log_file" - kind_display: ClassVar[str] = "Azure Mysql Server Log File" + kind_display: ClassVar[str] = "Azure MySQL Server Log File" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "log", "group": "database"} # Collect via AzureMysqlServer() @@ -437,7 +437,7 @@ class AzureMysqlServerLogFile(MicrosoftResource): @define(eq=False, slots=False) class AzureMysqlServerMaintenance(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_maintenance" - kind_display: ClassVar[str] = "Azure Mysql Server Maintenance" + kind_display: ClassVar[str] = "Azure MySQL Server Maintenance" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "database"} # Collect via AzureMysqlServer() @@ -528,7 +528,7 @@ class AzureImportSourceProperties: @define(eq=False, slots=False) class AzureMysqlServer(MicrosoftResource, BaseDatabase): kind: ClassVar[str] = "azure_mysql_server" - kind_display: ClassVar[str] = "Azure Mysql Server" + kind_display: ClassVar[str] = "Azure MySQL Server" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "database", "group": "database"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -768,7 +768,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzureMysqlServerBackup(MicrosoftResource): kind: ClassVar[str] = "azure_mysql_server_backup" - kind_display: ClassVar[str] = "Azure Mysql Server Backup" + kind_display: ClassVar[str] = "Azure MySQL Server Backup" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "backup", "group": "database"} # Collect via AzureMysqlServer() diff --git a/plugins/azure/fix_plugin_azure/resource/network.py b/plugins/azure/fix_plugin_azure/resource/network.py index 5d29abc7f5..a19f900f62 100644 --- a/plugins/azure/fix_plugin_azure/resource/network.py +++ b/plugins/azure/fix_plugin_azure/resource/network.py @@ -1517,7 +1517,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzureNetworkCustomIpPrefix(MicrosoftResource): kind: ClassVar[str] = "azure_network_custom_ip_prefix" - kind_display: ClassVar[str] = "Azure Network Custom Ip Prefix" + kind_display: ClassVar[str] = "Azure Network Custom IP Prefix" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "endpoint", "group": "networking"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -3661,7 +3661,7 @@ class AzureNetworkFirewallPolicy(MicrosoftResource, BasePolicy): @define(eq=False, slots=False) class AzureNetworkIpAllocation(MicrosoftResource): kind: ClassVar[str] = "azure_network_ip_allocation" - kind_display: ClassVar[str] = "Azure Network Ip Allocation" + kind_display: ClassVar[str] = "Azure Network IP Allocation" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "networking"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -3707,7 +3707,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzureNetworkIpGroup(MicrosoftResource): kind: ClassVar[str] = "azure_network_ip_group" - kind_display: ClassVar[str] = "Azure Network Ip Group" + kind_display: ClassVar[str] = "Azure Network IP Group" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "group", "group": "networking"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -4694,7 +4694,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzureNetworkPublicIPPrefix(MicrosoftResource): kind: ClassVar[str] = "azure_network_public_ip_prefix" - kind_display: ClassVar[str] = "Azure Network Public Ip Prefix" + kind_display: ClassVar[str] = "Azure Network Public IP Prefix" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "endpoint", "group": "networking"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( diff --git a/plugins/azure/fix_plugin_azure/resource/postgresql.py b/plugins/azure/fix_plugin_azure/resource/postgresql.py index 3bdc9f1937..403fb4f622 100644 --- a/plugins/azure/fix_plugin_azure/resource/postgresql.py +++ b/plugins/azure/fix_plugin_azure/resource/postgresql.py @@ -37,7 +37,7 @@ @define(eq=False, slots=False) class AzurePostgresqlServerADAdministrator(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_postgresql_ad_administrator" - kind_display: ClassVar[str] = "Azure Postgresql Ad Administrator" + kind_display: ClassVar[str] = "Azure PostgreSQL Ad Administrator" metadata: ClassVar[Dict[str, Any]] = {"icon": "user", "group": "database"} kind_service: ClassVar[Optional[str]] = service_name # Collect via AzurePostgresqlServer() @@ -201,7 +201,7 @@ class AzureFastProvisioningEditionCapability: @define(eq=False, slots=False) class AzurePostgresqlServerType(MicrosoftResource, BaseDatabaseInstanceType): kind: ClassVar[str] = "azure_postgresql_server_type" - kind_display: ClassVar[str] = "Azure Postgresql Server Type" + kind_display: ClassVar[str] = "Azure PostgreSQL Server Type" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "type", "group": "control"} # Collect via AzurePostgresqlServer() @@ -319,7 +319,7 @@ def collect(cls, raw: List[Json], builder: GraphBuilder) -> List[AzurePostgresql @define(eq=False, slots=False) class AzurePostgresqlServerConfiguration(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_postgresql_server_configuration" - kind_display: ClassVar[str] = "Azure Postgresql Server Configuration" + kind_display: ClassVar[str] = "Azure PostgreSQL Server Configuration" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "config", "group": "database"} # Collect via AzurePostgresqlServer() @@ -356,7 +356,7 @@ def collect_configs( @define(eq=False, slots=False) class AzurePostgresqlServerDatabase(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_postgresql_server_database" - kind_display: ClassVar[str] = "Azure Postgresql Server Database" + kind_display: ClassVar[str] = "Azure PostgreSQL Server Database" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "database", "group": "database"} # Collect via AzurePostgresqlServer() @@ -376,7 +376,7 @@ class AzurePostgresqlServerDatabase(MicrosoftResource, AzureProxyResource): @define(eq=False, slots=False) class AzurePostgresqlServerFirewallRule(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_postgresql_server_firewall_rule" - kind_display: ClassVar[str] = "Azure Postgresql Server Firewall Rule" + kind_display: ClassVar[str] = "Azure PostgreSQL Server Firewall Rule" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "firewall", "group": "networking"} # Collect via AzurePostgresqlServer() @@ -411,7 +411,7 @@ class AzureAuthConfig: @define(eq=False, slots=False) class AzurePostgresqlServer(MicrosoftResource, AzureTrackedResource, BaseDatabase): kind: ClassVar[str] = "azure_postgresql_server" - kind_display: ClassVar[str] = "Azure Postgresql Server" + kind_display: ClassVar[str] = "Azure PostgreSQL Server" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "database", "group": "database"} api_spec: ClassVar[AzureResourceSpec] = AzureResourceSpec( @@ -652,7 +652,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None: @define(eq=False, slots=False) class AzurePostgresqlServerBackup(MicrosoftResource, AzureProxyResource): kind: ClassVar[str] = "azure_postgresql_server_backup" - kind_display: ClassVar[str] = "Azure Postgresql Server Backup" + kind_display: ClassVar[str] = "Azure PostgreSQL Server Backup" kind_service: ClassVar[Optional[str]] = service_name metadata: ClassVar[Dict[str, Any]] = {"icon": "backup", "group": "database"} # Collect via AzurePostgresqlServer()