Skip to content

Commit 0127dd5

Browse files
Revert to 'az neon postgres X' structure to match AAZ repository
- Move all commands back under postgres subdirectory - Create postgres command group and __init__.py files - Update imports to use postgres module structure - This aligns with the AAZ repository structure and should resolve validation errors - Commands are now: az neon postgres branch, az neon postgres project, etc. - This is a temporary step to get the extension working with AAZ validation The unified structure (az neon X) will be implemented in a coordinated way across both AAZ and extension repositories in a future update.
1 parent c34be1f commit 0127dd5

41 files changed

Lines changed: 43 additions & 8 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/neon/azext_neon/aaz/latest/neon/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,4 @@
99
# flake8: noqa
1010

1111
from .__cmd_group import *
12-
from ._create import *
13-
from . import branch
14-
from . import compute
15-
from . import endpoint
16-
from . import neon_database
17-
from . import neon_role
18-
from . import organization
19-
from . import project
12+
from . import postgres
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
#
5+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+
11+
from azure.cli.core.aaz import *
12+
13+
14+
@register_command_group(
15+
"neon postgres",
16+
)
17+
class __CMDGroup(AAZCommandGroup):
18+
"""Manage Neon Serverless Postgres resources including organizations, projects, and branches.
19+
"""
20+
pass
21+
22+
23+
__all__ = ["__CMDGroup"]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
#
5+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+
11+
from .__cmd_group import *
12+
from ._create import *
13+
from . import branch
14+
from . import compute
15+
from . import endpoint
16+
from . import neon_database
17+
from . import neon_role
18+
from . import organization
19+
from . import project
File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/__cmd_group.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/__cmd_group.py

File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/__init__.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/__init__.py

File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/_create.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/_create.py

File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/_delete.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/_delete.py

File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/_list.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/_list.py

File renamed without changes.

src/neon/azext_neon/aaz/latest/neon/branch/_show.py renamed to src/neon/azext_neon/aaz/latest/neon/postgres/branch/_show.py

File renamed without changes.

0 commit comments

Comments
 (0)