1414 cf_postgres_flexible_location_capabilities ,
1515 cf_postgres_flexible_backups ,
1616 cf_postgres_flexible_ltr_backups ,
17- cf_postgres_flexible_operations ,
1817 cf_postgres_flexible_replica ,
1918 cf_postgres_flexible_admin ,
2019 cf_postgres_flexible_migrations ,
21- cf_postgres_flexible_private_endpoint_connection ,
2220 cf_postgres_flexible_private_endpoint_connections ,
2321 cf_postgres_flexible_private_link_resources ,
2422 cf_postgres_flexible_virtual_endpoints ,
2523 cf_postgres_flexible_server_threat_protection_settings ,
24+ cf_postgres_flexible_advanced_threat_protection_settings ,
2625 cf_postgres_flexible_server_log_files )
2726
2827from ._transformers import (
@@ -61,32 +60,27 @@ def load_flexibleserver_command_table(self, _):
6160 )
6261
6362 postgres_flexible_location_capabilities_sdk = CliCommandType (
64- operations_tmpl = 'azure.mgmt.rdbms.postgresqlflexibleservers.operations#LocationBasedCapabilitiesOperations .{}' ,
63+ operations_tmpl = 'azure.mgmt.rdbms.postgresqlflexibleservers.operations#CapabilitiesByLocationOperations .{}' ,
6564 client_factory = cf_postgres_flexible_location_capabilities
6665 )
6766
6867 postgres_flexible_backups_sdk = CliCommandType (
69- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#BackupsOperations .{}' ,
68+ operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#BackupsAutomaticAndOnDemandOperations .{}' ,
7069 client_factory = cf_postgres_flexible_backups
7170 )
7271
7372 postgres_flexible_ltr_backup_sdk = CliCommandType (
74- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#LtrBackupOperationsOperations .{}' ,
73+ operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#BackupsLongTermRetentionOperations .{}' ,
7574 client_factory = cf_postgres_flexible_ltr_backups
7675 )
7776
78- postgres_flexible_operations_sdk = CliCommandType (
79- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#FlexibleServerOperations.{}' ,
80- client_factory = cf_postgres_flexible_operations
81- )
82-
8377 postgres_flexible_replica_sdk = CliCommandType (
8478 operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#ReplicasOperations.{}' ,
8579 client_factory = cf_postgres_flexible_replica
8680 )
8781
8882 postgres_flexible_admin_sdk = CliCommandType (
89- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#AdministratorsOperations .{}' ,
83+ operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#AdministratorsMicrosoftEntraOperations .{}' ,
9084 client_factory = cf_postgres_flexible_admin
9185 )
9286
@@ -105,14 +99,14 @@ def load_flexibleserver_command_table(self, _):
10599 client_factory = cf_postgres_flexible_server_threat_protection_settings
106100 )
107101
108- postgres_flexible_server_log_files_sdk = CliCommandType (
109- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#LogFilesOperations .{}' ,
110- client_factory = cf_postgres_flexible_server_log_files
102+ postgres_flexible_advanced_threat_protection_settings_sdk = CliCommandType (
103+ operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#AdvancedThreatProtectionSettingsOperations .{}' ,
104+ client_factory = cf_postgres_flexible_advanced_threat_protection_settings
111105 )
112106
113- postgres_flexible_server_private_endpoint_connection_sdk = CliCommandType (
114- operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#PrivateEndpointConnectionOperations .{}' ,
115- client_factory = cf_postgres_flexible_private_endpoint_connection
107+ postgres_flexible_server_log_files_sdk = CliCommandType (
108+ operations_tmpl = 'azure.mgmt.postgresqlflexibleservers.operations#CapturedLogsOperations .{}' ,
109+ client_factory = cf_postgres_flexible_server_log_files
116110 )
117111
118112 postgres_flexible_server_private_endpoint_connections_sdk = CliCommandType (
@@ -223,9 +217,6 @@ def load_flexibleserver_command_table(self, _):
223217 client_factory = cf_postgres_flexible_ltr_backups ) as g :
224218 g .command ('list' , 'list_by_server' , transform = transform_backups_list )
225219 g .show_command ('show' , 'get' , transform = transform_backup )
226-
227- with self .command_group ('postgres flexible-server long-term-retention' , postgres_flexible_operations_sdk ,
228- client_factory = cf_postgres_flexible_operations ) as g :
229220 g .custom_command ('pre-check' , 'ltr_precheck_func' , custom_command_type = flexible_servers_custom_postgres )
230221 g .custom_command ('start' , 'ltr_start_func' , custom_command_type = flexible_servers_custom_postgres )
231222
@@ -258,10 +249,14 @@ def load_flexibleserver_command_table(self, _):
258249 g .custom_show_command ('show' , 'flexible_server_microsoft_entra_admin_show' )
259250 g .custom_wait_command ('wait' , 'flexible_server_microsoft_entra_admin_show' )
260251
252+ with self .command_group ('postgres flexible-server advanced-threat-protection-setting' , postgres_flexible_advanced_threat_protection_settings_sdk ,
253+ custom_command_type = flexible_servers_custom_postgres ,
254+ client_factory = cf_postgres_flexible_advanced_threat_protection_settings ) as g :
255+ g .custom_show_command ('show' , 'flexible_server_threat_protection_get' , custom_command_type = flexible_servers_custom_postgres )
256+
261257 with self .command_group ('postgres flexible-server advanced-threat-protection-setting' , postgres_flexible_server_threat_protection_settings_sdk ,
262258 custom_command_type = flexible_servers_custom_postgres ,
263259 client_factory = cf_postgres_flexible_server_threat_protection_settings ) as g :
264- g .custom_show_command ('show' , 'flexible_server_threat_protection_get' , custom_command_type = flexible_servers_custom_postgres )
265260 g .custom_command ('update' , 'flexible_server_threat_protection_update' , custom_command_type = flexible_servers_custom_postgres )
266261
267262 with self .command_group ('postgres flexible-server server-logs' , postgres_flexible_server_log_files_sdk ,
@@ -270,13 +265,11 @@ def load_flexibleserver_command_table(self, _):
270265 g .custom_command ('list' , 'flexible_server_list_log_files_with_filter' , custom_command_type = flexible_servers_custom_postgres )
271266 g .custom_command ('download' , 'flexible_server_download_log_files' , custom_command_type = flexible_servers_custom_postgres )
272267
273- with self .command_group ('postgres flexible-server private-endpoint-connection' , postgres_flexible_server_private_endpoint_connections_sdk ) as g :
268+ with self .command_group ('postgres flexible-server private-endpoint-connection' , postgres_flexible_server_private_endpoint_connections_sdk ,
269+ custom_command_type = flexible_servers_custom_postgres ,
270+ client_factory = cf_postgres_flexible_private_endpoint_connections ) as g :
274271 g .command ('list' , 'list_by_server' )
275272 g .show_command ('show' , 'get' , validator = validate_private_endpoint_connection_id )
276-
277- with self .command_group ('postgres flexible-server private-endpoint-connection' , postgres_flexible_server_private_endpoint_connection_sdk ,
278- custom_command_type = flexible_servers_custom_postgres ,
279- client_factory = cf_postgres_flexible_private_endpoint_connection ) as g :
280273 g .command ('delete' , 'begin_delete' , validator = validate_private_endpoint_connection_id )
281274 g .custom_command ('approve' , 'flexible_server_approve_private_endpoint_connection' , custom_command_type = flexible_servers_custom_postgres ,
282275 validator = validate_private_endpoint_connection_id )
0 commit comments