Skip to content

Commit 2b6f4f1

Browse files
committed
renamings
1 parent 99e33af commit 2b6f4f1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/azure-cli/azure/cli/command_modules/rdbms/_client_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def cf_postgres_flexible_operations(cli_ctx, _):
370370
return get_postgresql_flexible_management_client(cli_ctx).flexible_server
371371

372372

373-
def cf_postgres_flexible_adadmin(cli_ctx, _):
373+
def cf_postgres_flexible_admin(cli_ctx, _):
374374
return get_postgresql_flexible_management_client(cli_ctx).administrators
375375

376376

src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_commands.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
cf_postgres_flexible_ltr_backups,
1717
cf_postgres_flexible_operations,
1818
cf_postgres_flexible_replica,
19-
cf_postgres_flexible_adadmin,
19+
cf_postgres_flexible_admin,
2020
cf_postgres_flexible_migrations,
2121
cf_postgres_flexible_private_endpoint_connection,
2222
cf_postgres_flexible_private_endpoint_connections,
@@ -85,9 +85,9 @@ def load_flexibleserver_command_table(self, _):
8585
client_factory=cf_postgres_flexible_replica
8686
)
8787

88-
postgres_flexible_adadmin_sdk = CliCommandType(
88+
postgres_flexible_admin_sdk = CliCommandType(
8989
operations_tmpl='azure.mgmt.postgresqlflexibleservers.operations#AdministratorsOperations.{}',
90-
client_factory=cf_postgres_flexible_adadmin
90+
client_factory=cf_postgres_flexible_admin
9191
)
9292

9393
postgres_flexible_migrations_sdk = CliCommandType(
@@ -250,14 +250,14 @@ def load_flexibleserver_command_table(self, _):
250250
g.custom_show_command('show', 'flexible_server_identity_show')
251251
g.custom_command('list', 'flexible_server_identity_list')
252252

253-
with self.command_group('postgres flexible-server microsoft-entra-admin', postgres_flexible_adadmin_sdk,
253+
with self.command_group('postgres flexible-server microsoft-entra-admin', postgres_flexible_admin_sdk,
254254
custom_command_type=flexible_servers_custom_postgres,
255-
client_factory=cf_postgres_flexible_adadmin) as g:
256-
g.custom_command('create', 'flexible_server_ad_admin_set', supports_no_wait=True)
257-
g.custom_command('delete', 'flexible_server_ad_admin_delete', supports_no_wait=True, confirmation=True)
258-
g.custom_command('list', 'flexible_server_ad_admin_list')
259-
g.custom_show_command('show', 'flexible_server_ad_admin_show')
260-
g.custom_wait_command('wait', 'flexible_server_ad_admin_show')
255+
client_factory=cf_postgres_flexible_admin) as g:
256+
g.custom_command('create', 'flexible_server_microsoft_entra_admin_set', supports_no_wait=True)
257+
g.custom_command('delete', 'flexible_server_microsoft_entra_admin_delete', supports_no_wait=True, confirmation=True)
258+
g.custom_command('list', 'flexible_server_microsoft_entra_admin_list')
259+
g.custom_show_command('show', 'flexible_server_microsoft_entra_admin_show')
260+
g.custom_wait_command('wait', 'flexible_server_microsoft_entra_admin_show')
261261

262262
with self.command_group('postgres flexible-server advanced-threat-protection-setting', postgres_flexible_server_threat_protection_settings_sdk,
263263
custom_command_type=flexible_servers_custom_postgres,

src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def flexible_server_identity_show(cmd, client, resource_group_name, server_name,
11081108

11091109

11101110
# Custom functions for ad-admin
1111-
def flexible_server_ad_admin_set(cmd, client, resource_group_name, server_name, login, sid, principal_type=None, no_wait=False):
1111+
def flexible_server_microsoft_entra_admin_set(cmd, client, resource_group_name, server_name, login, sid, principal_type=None, no_wait=False):
11121112
validate_resource_group(resource_group_name)
11131113

11141114
server_operations_client = cf_postgres_flexible_servers(cmd.cli_ctx, '_')
@@ -1132,7 +1132,7 @@ def _create_admin(client, resource_group_name, server_name, principal_name, sid,
11321132
return sdk_no_wait(no_wait, client.begin_create, resource_group_name, server_name, sid, parameters)
11331133

11341134

1135-
def flexible_server_ad_admin_delete(cmd, client, resource_group_name, server_name, sid, no_wait=False):
1135+
def flexible_server_microsoft_entra_admin_delete(cmd, client, resource_group_name, server_name, sid, no_wait=False):
11361136
validate_resource_group(resource_group_name)
11371137

11381138
server_operations_client = cf_postgres_flexible_servers(cmd.cli_ctx, '_')
@@ -1145,15 +1145,15 @@ def flexible_server_ad_admin_delete(cmd, client, resource_group_name, server_nam
11451145
return sdk_no_wait(no_wait, client.begin_delete, resource_group_name, server_name, sid)
11461146

11471147

1148-
def flexible_server_ad_admin_list(client, resource_group_name, server_name):
1148+
def flexible_server_microsoft_entra_admin_list(client, resource_group_name, server_name):
11491149
validate_resource_group(resource_group_name)
11501150

11511151
return client.list_by_server(
11521152
resource_group_name=resource_group_name,
11531153
server_name=server_name)
11541154

11551155

1156-
def flexible_server_ad_admin_show(client, resource_group_name, server_name, sid):
1156+
def flexible_server_microsoft_entra_admin_show(client, resource_group_name, server_name, sid):
11571157
validate_resource_group(resource_group_name)
11581158

11591159
return client.get(

0 commit comments

Comments
 (0)