Skip to content

Commit 7bb8807

Browse files
[AutoRelease] t2-neonpostgres-2025-04-07-16147(can only be merged by SDK owner) (Azure#40393)
* code and test * update testcases --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 76cbd69 commit 7bb8807

File tree

82 files changed

+19173
-676
lines changed

Some content is hidden

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

82 files changed

+19173
-676
lines changed

sdk/neonpostgres/azure-mgmt-neonpostgres/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Release History
22

3+
## 1.0.0 (2025-04-21)
4+
5+
### Features Added
6+
7+
- Client `NeonPostgresMgmtClient` added operation group `models`
8+
- Client `NeonPostgresMgmtClient` added operation group `projects`
9+
- Client `NeonPostgresMgmtClient` added operation group `branches`
10+
- Client `NeonPostgresMgmtClient` added operation group `computes`
11+
- Client `NeonPostgresMgmtClient` added operation group `neon_databases`
12+
- Client `NeonPostgresMgmtClient` added operation group `neon_roles`
13+
- Client `NeonPostgresMgmtClient` added operation group `endpoints`
14+
- Model `OrganizationProperties` added property `project_properties`
15+
- Added model `Attributes`
16+
- Added model `Branch`
17+
- Added model `BranchProperties`
18+
- Added model `Compute`
19+
- Added model `ComputeProperties`
20+
- Added model `ConnectionUriProperties`
21+
- Added model `DefaultEndpointSettings`
22+
- Added model `Endpoint`
23+
- Added model `EndpointProperties`
24+
- Added enum `EndpointType`
25+
- Added model `NeonDatabase`
26+
- Added model `NeonDatabaseProperties`
27+
- Added model `NeonRole`
28+
- Added model `NeonRoleProperties`
29+
- Added model `PgVersion`
30+
- Added model `PgVersionsResult`
31+
- Added model `Project`
32+
- Added model `ProjectProperties`
33+
- Added model `ProxyResource`
34+
- Operation group `OrganizationsOperations` added method `get_postgres_versions`
35+
- Added operation group `BranchesOperations`
36+
- Added operation group `ComputesOperations`
37+
- Added operation group `EndpointsOperations`
38+
- Added operation group `ModelsOperations`
39+
- Added operation group `NeonDatabasesOperations`
40+
- Added operation group `NeonRolesOperations`
41+
- Added operation group `ProjectsOperations`
42+
343
## 1.0.0b1 (2024-12-03)
444

545
### Other Changes

sdk/neonpostgres/azure-mgmt-neonpostgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "4e3820497caa29ed0efada28a38cb4292cea9d55",
2+
"commit": "917ba27f78348899fba4cafb37fcf018f1987a8e",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/liftrneon/Neon.Postgres.Management",
5-
"@azure-tools/typespec-python": "0.36.1"
5+
"@azure-tools/typespec-python": "0.42.2"
66
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"CrossLanguagePackageId": "Neon.Postgres",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.neonpostgres.models.Attributes": "Neon.Postgres.Models.Attributes",
5+
"azure.mgmt.neonpostgres.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
6+
"azure.mgmt.neonpostgres.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
7+
"azure.mgmt.neonpostgres.models.Branch": "Neon.Postgres.Branch",
8+
"azure.mgmt.neonpostgres.models.BranchProperties": "Neon.Postgres.Models.BranchProperties",
9+
"azure.mgmt.neonpostgres.models.CompanyDetails": "LiftrBase.CompanyDetails",
10+
"azure.mgmt.neonpostgres.models.Compute": "Neon.Postgres.Compute",
11+
"azure.mgmt.neonpostgres.models.ComputeProperties": "Neon.Postgres.Models.ComputeProperties",
12+
"azure.mgmt.neonpostgres.models.ConnectionUriProperties": "Neon.Postgres.Models.ConnectionUriProperties",
13+
"azure.mgmt.neonpostgres.models.DefaultEndpointSettings": "Neon.Postgres.Models.DefaultEndpointSettings",
14+
"azure.mgmt.neonpostgres.models.Endpoint": "Neon.Postgres.Endpoint",
15+
"azure.mgmt.neonpostgres.models.EndpointProperties": "Neon.Postgres.Models.EndpointProperties",
16+
"azure.mgmt.neonpostgres.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
17+
"azure.mgmt.neonpostgres.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
18+
"azure.mgmt.neonpostgres.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
19+
"azure.mgmt.neonpostgres.models.MarketplaceDetails": "LiftrBase.MarketplaceDetails",
20+
"azure.mgmt.neonpostgres.models.NeonDatabase": "Neon.Postgres.NeonDatabase",
21+
"azure.mgmt.neonpostgres.models.NeonDatabaseProperties": "Neon.Postgres.Models.NeonDatabaseProperties",
22+
"azure.mgmt.neonpostgres.models.NeonRole": "Neon.Postgres.NeonRole",
23+
"azure.mgmt.neonpostgres.models.NeonRoleProperties": "Neon.Postgres.Models.NeonRoleProperties",
24+
"azure.mgmt.neonpostgres.models.OfferDetails": "LiftrBase.OfferDetails",
25+
"azure.mgmt.neonpostgres.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
26+
"azure.mgmt.neonpostgres.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
27+
"azure.mgmt.neonpostgres.models.OrganizationProperties": "LiftrBase.Data.OrganizationProperties",
28+
"azure.mgmt.neonpostgres.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
29+
"azure.mgmt.neonpostgres.models.OrganizationResource": "Neon.Postgres.OrganizationResource",
30+
"azure.mgmt.neonpostgres.models.PartnerOrganizationProperties": "LiftrBase.Data.PartnerOrganizationProperties",
31+
"azure.mgmt.neonpostgres.models.PgVersion": "Neon.Postgres.Models.PgVersion",
32+
"azure.mgmt.neonpostgres.models.PgVersionsResult": "Neon.Postgres.Models.PgVersionsResult",
33+
"azure.mgmt.neonpostgres.models.Project": "Neon.Postgres.Project",
34+
"azure.mgmt.neonpostgres.models.ProjectProperties": "Neon.Postgres.Models.ProjectProperties",
35+
"azure.mgmt.neonpostgres.models.SingleSignOnProperties": "LiftrBase.SingleSignOnProperties",
36+
"azure.mgmt.neonpostgres.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
37+
"azure.mgmt.neonpostgres.models.UserDetails": "LiftrBase.UserDetails",
38+
"azure.mgmt.neonpostgres.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
39+
"azure.mgmt.neonpostgres.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
40+
"azure.mgmt.neonpostgres.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
41+
"azure.mgmt.neonpostgres.models.MarketplaceSubscriptionStatus": "LiftrBase.MarketplaceSubscriptionStatus",
42+
"azure.mgmt.neonpostgres.models.ResourceProvisioningState": "Azure.ResourceManager.ResourceProvisioningState",
43+
"azure.mgmt.neonpostgres.models.SingleSignOnStates": "LiftrBase.SingleSignOnStates",
44+
"azure.mgmt.neonpostgres.models.EndpointType": "Neon.Postgres.Models.EndpointType",
45+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
46+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.get": "Neon.Postgres.Organizations.get",
47+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.begin_create_or_update": "Neon.Postgres.Organizations.createOrUpdate",
48+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.begin_update": "Neon.Postgres.Organizations.update",
49+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.begin_delete": "Neon.Postgres.Organizations.delete",
50+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.list_by_resource_group": "Neon.Postgres.Organizations.listByResourceGroup",
51+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.list_by_subscription": "Neon.Postgres.Organizations.listBySubscription",
52+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.organizations.get_postgres_versions": "Neon.Postgres.Organizations.getPostgresVersions",
53+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.get": "Neon.Postgres.Projects.get",
54+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.begin_create_or_update": "Neon.Postgres.Projects.createOrUpdate",
55+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.begin_update": "Neon.Postgres.Projects.update",
56+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.delete": "Neon.Postgres.Projects.delete",
57+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.list": "Neon.Postgres.Projects.list",
58+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.projects.get_connection_uri": "Neon.Postgres.Projects.getConnectionUri",
59+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.branches.get": "Neon.Postgres.Branches.get",
60+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.branches.begin_create_or_update": "Neon.Postgres.Branches.createOrUpdate",
61+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.branches.begin_update": "Neon.Postgres.Branches.update",
62+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.branches.delete": "Neon.Postgres.Branches.delete",
63+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.branches.list": "Neon.Postgres.Branches.list",
64+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.computes.get": "Neon.Postgres.Computes.get",
65+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.computes.begin_create_or_update": "Neon.Postgres.Computes.createOrUpdate",
66+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.computes.begin_update": "Neon.Postgres.Computes.update",
67+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.computes.delete": "Neon.Postgres.Computes.delete",
68+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.computes.list": "Neon.Postgres.Computes.list",
69+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_databases.get": "Neon.Postgres.NeonDatabases.get",
70+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_databases.begin_create_or_update": "Neon.Postgres.NeonDatabases.createOrUpdate",
71+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_databases.begin_update": "Neon.Postgres.NeonDatabases.update",
72+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_databases.delete": "Neon.Postgres.NeonDatabases.delete",
73+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_databases.list": "Neon.Postgres.NeonDatabases.list",
74+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_roles.get": "Neon.Postgres.NeonRoles.get",
75+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_roles.begin_create_or_update": "Neon.Postgres.NeonRoles.createOrUpdate",
76+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_roles.begin_update": "Neon.Postgres.NeonRoles.update",
77+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_roles.delete": "Neon.Postgres.NeonRoles.delete",
78+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.neon_roles.list": "Neon.Postgres.NeonRoles.list",
79+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.endpoints.get": "Neon.Postgres.Endpoints.get",
80+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.endpoints.begin_create_or_update": "Neon.Postgres.Endpoints.createOrUpdate",
81+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.endpoints.begin_update": "Neon.Postgres.Endpoints.update",
82+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.endpoints.delete": "Neon.Postgres.Endpoints.delete",
83+
"azure.mgmt.neonpostgres.NeonPostgresMgmtClient.endpoints.list": "Neon.Postgres.Endpoints.list"
84+
}
85+
}

sdk/neonpostgres/azure-mgmt-neonpostgres/azure/mgmt/neonpostgres/_client.py

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,51 @@
1717

1818
from ._configuration import NeonPostgresMgmtClientConfiguration
1919
from ._serialization import Deserializer, Serializer
20-
from .operations import Operations, OrganizationsOperations
20+
from .operations import (
21+
BranchesOperations,
22+
ComputesOperations,
23+
EndpointsOperations,
24+
ModelsOperations,
25+
NeonDatabasesOperations,
26+
NeonRolesOperations,
27+
Operations,
28+
OrganizationsOperations,
29+
ProjectsOperations,
30+
)
2131

2232
if TYPE_CHECKING:
2333
from azure.core.credentials import TokenCredential
2434

2535

26-
class NeonPostgresMgmtClient:
36+
class NeonPostgresMgmtClient: # pylint: disable=too-many-instance-attributes
2737
"""NeonPostgresMgmtClient.
2838
39+
:ivar models: ModelsOperations operations
40+
:vartype models: azure.mgmt.neonpostgres.operations.ModelsOperations
2941
:ivar operations: Operations operations
3042
:vartype operations: azure.mgmt.neonpostgres.operations.Operations
3143
:ivar organizations: OrganizationsOperations operations
3244
:vartype organizations: azure.mgmt.neonpostgres.operations.OrganizationsOperations
45+
:ivar projects: ProjectsOperations operations
46+
:vartype projects: azure.mgmt.neonpostgres.operations.ProjectsOperations
47+
:ivar branches: BranchesOperations operations
48+
:vartype branches: azure.mgmt.neonpostgres.operations.BranchesOperations
49+
:ivar computes: ComputesOperations operations
50+
:vartype computes: azure.mgmt.neonpostgres.operations.ComputesOperations
51+
:ivar neon_databases: NeonDatabasesOperations operations
52+
:vartype neon_databases: azure.mgmt.neonpostgres.operations.NeonDatabasesOperations
53+
:ivar neon_roles: NeonRolesOperations operations
54+
:vartype neon_roles: azure.mgmt.neonpostgres.operations.NeonRolesOperations
55+
:ivar endpoints: EndpointsOperations operations
56+
:vartype endpoints: azure.mgmt.neonpostgres.operations.EndpointsOperations
3357
:param credential: Credential used to authenticate requests to the service. Required.
3458
:type credential: ~azure.core.credentials.TokenCredential
3559
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3660
:type subscription_id: str
3761
:param base_url: Service host. Default value is "https://management.azure.com".
3862
:type base_url: str
39-
:keyword api_version: The API version to use for this operation. Default value is
40-
"2024-08-01-preview". Note that overriding this default value may result in unsupported
41-
behavior.
63+
:keyword api_version: The API version to use for this operation. Default value is "2025-03-01".
64+
Note that overriding this default value may result in unsupported behavior.
4265
:paramtype api_version: str
4366
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4467
Retry-After header is present.
@@ -78,8 +101,15 @@ def __init__(
78101
self._serialize = Serializer()
79102
self._deserialize = Deserializer()
80103
self._serialize.client_side_validation = False
104+
self.models = ModelsOperations(self._client, self._config, self._serialize, self._deserialize)
81105
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
82106
self.organizations = OrganizationsOperations(self._client, self._config, self._serialize, self._deserialize)
107+
self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize)
108+
self.branches = BranchesOperations(self._client, self._config, self._serialize, self._deserialize)
109+
self.computes = ComputesOperations(self._client, self._config, self._serialize, self._deserialize)
110+
self.neon_databases = NeonDatabasesOperations(self._client, self._config, self._serialize, self._deserialize)
111+
self.neon_roles = NeonRolesOperations(self._client, self._config, self._serialize, self._deserialize)
112+
self.endpoints = EndpointsOperations(self._client, self._config, self._serialize, self._deserialize)
83113

84114
def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
85115
"""Runs the network request through the client's chained policies.

sdk/neonpostgres/azure-mgmt-neonpostgres/azure/mgmt/neonpostgres/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class NeonPostgresMgmtClientConfiguration: # pylint: disable=too-many-instance-
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2024-08-01-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2025-03-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2024-08-01-preview")
44+
api_version: str = kwargs.pop("api_version", "2025-03-01")
4645

4746
if credential is None:
4847
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)