Skip to content

Commit

Permalink
[AutoRelease] t2-sql-2024-10-03-42323(can only be merged by SDK owner) (
Browse files Browse the repository at this point in the history
#37698)

* code and test

* Update CHANGELOG.md

* Update sdk/sql/azure-mgmt-sql/CHANGELOG.md

* Update sdk/sql/azure-mgmt-sql/CHANGELOG.md

* update-testcase

* fix generated samples

* update-testcase

---------

Co-authored-by: azure-sdk <PythonSdkPipelines>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com>
  • Loading branch information
4 people authored Nov 4, 2024
1 parent 72b7f7e commit fd3d6b9
Show file tree
Hide file tree
Showing 41 changed files with 8,829 additions and 4,759 deletions.
41 changes: 41 additions & 0 deletions sdk/sql/azure-mgmt-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Release History

## 4.0.0b20 (2024-11-04)

### Features Added

- Model `DistributedAvailabilityGroup` added property `distributed_availability_group_name`
- Model `DistributedAvailabilityGroup` added property `partner_link_role`
- Model `DistributedAvailabilityGroup` added property `partner_availability_group_name`
- Model `DistributedAvailabilityGroup` added property `partner_endpoint`
- Model `DistributedAvailabilityGroup` added property `instance_link_role`
- Model `DistributedAvailabilityGroup` added property `instance_availability_group_name`
- Model `DistributedAvailabilityGroup` added property `failover_mode`
- Model `DistributedAvailabilityGroup` added property `seeding_mode`
- Model `DistributedAvailabilityGroup` added property `databases`
- Added model `CertificateInfo`
- Added model `DistributedAvailabilityGroupDatabase`
- Added model `DistributedAvailabilityGroupSetRole`
- Added model `DistributedAvailabilityGroupsFailoverRequest`
- Added enum `FailoverModeType`
- Added enum `FailoverType`
- Added enum `InstanceRole`
- Added enum `LinkRole`
- Added enum `ReplicaConnectedState`
- Added enum `ReplicaSynchronizationHealth`
- Added enum `ReplicationModeType`
- Added enum `RoleChangeType`
- Added enum `SeedingModeType`
- Operation group `DistributedAvailabilityGroupsOperations` added method `begin_failover`
- Operation group `DistributedAvailabilityGroupsOperations` added method `begin_set_role`

### Breaking Changes

- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `target_database`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `source_endpoint`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `primary_availability_group_name`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `secondary_availability_group_name`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `source_replica_id`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `target_replica_id`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `link_state`
- Model `DistributedAvailabilityGroup` deleted or renamed its instance variable `last_hardened_lsn`
- Deleted or renamed model `ReplicationMode`

## 4.0.0b19 (2024-09-09)

### Features Added
Expand Down
4 changes: 2 additions & 2 deletions sdk/sql/azure-mgmt-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "fa6609332acece21de44c0bf885cbcb3d87bd01f",
"commit": "987a8f38ab2a8359d085e149be042267a9ecc66f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/sql/resource-manager/readme.md"
}
12 changes: 6 additions & 6 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,6 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies:
azure.mgmt.sql.operations.ServerConnectionPoliciesOperations
:ivar distributed_availability_groups: DistributedAvailabilityGroupsOperations operations
:vartype distributed_availability_groups:
azure.mgmt.sql.operations.DistributedAvailabilityGroupsOperations
:ivar server_trust_certificates: ServerTrustCertificatesOperations operations
:vartype server_trust_certificates: azure.mgmt.sql.operations.ServerTrustCertificatesOperations
:ivar endpoint_certificates: EndpointCertificatesOperations operations
Expand Down Expand Up @@ -599,6 +596,9 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:vartype servers: azure.mgmt.sql.operations.ServersOperations
:ivar replication_links: ReplicationLinksOperations operations
:vartype replication_links: azure.mgmt.sql.operations.ReplicationLinksOperations
:ivar distributed_availability_groups: DistributedAvailabilityGroupsOperations operations
:vartype distributed_availability_groups:
azure.mgmt.sql.operations.DistributedAvailabilityGroupsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
Expand Down Expand Up @@ -885,9 +885,6 @@ def __init__(
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.distributed_availability_groups = DistributedAvailabilityGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.server_trust_certificates = ServerTrustCertificatesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -1049,6 +1046,9 @@ def __init__(
self.replication_links = ReplicationLinksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.distributed_availability_groups = DistributedAvailabilityGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "4.0.0b19"
VERSION = "4.0.0b20"
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,6 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies:
azure.mgmt.sql.aio.operations.ServerConnectionPoliciesOperations
:ivar distributed_availability_groups: DistributedAvailabilityGroupsOperations operations
:vartype distributed_availability_groups:
azure.mgmt.sql.aio.operations.DistributedAvailabilityGroupsOperations
:ivar server_trust_certificates: ServerTrustCertificatesOperations operations
:vartype server_trust_certificates:
azure.mgmt.sql.aio.operations.ServerTrustCertificatesOperations
Expand Down Expand Up @@ -605,6 +602,9 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
:ivar replication_links: ReplicationLinksOperations operations
:vartype replication_links: azure.mgmt.sql.aio.operations.ReplicationLinksOperations
:ivar distributed_availability_groups: DistributedAvailabilityGroupsOperations operations
:vartype distributed_availability_groups:
azure.mgmt.sql.aio.operations.DistributedAvailabilityGroupsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
Expand Down Expand Up @@ -891,9 +891,6 @@ def __init__(
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.distributed_availability_groups = DistributedAvailabilityGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.server_trust_certificates = ServerTrustCertificatesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -1055,6 +1052,9 @@ def __init__(
self.replication_links = ReplicationLinksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.distributed_availability_groups = DistributedAvailabilityGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
from ._long_term_retention_managed_instance_backups_operations import LongTermRetentionManagedInstanceBackupsOperations
from ._restorable_dropped_managed_databases_operations import RestorableDroppedManagedDatabasesOperations
from ._server_connection_policies_operations import ServerConnectionPoliciesOperations
from ._distributed_availability_groups_operations import DistributedAvailabilityGroupsOperations
from ._server_trust_certificates_operations import ServerTrustCertificatesOperations
from ._endpoint_certificates_operations import EndpointCertificatesOperations
from ._managed_database_sensitivity_labels_operations import ManagedDatabaseSensitivityLabelsOperations
Expand Down Expand Up @@ -186,6 +185,7 @@
from ._managed_instances_operations import ManagedInstancesOperations
from ._servers_operations import ServersOperations
from ._replication_links_operations import ReplicationLinksOperations
from ._distributed_availability_groups_operations import DistributedAvailabilityGroupsOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down Expand Up @@ -288,7 +288,6 @@
"LongTermRetentionManagedInstanceBackupsOperations",
"RestorableDroppedManagedDatabasesOperations",
"ServerConnectionPoliciesOperations",
"DistributedAvailabilityGroupsOperations",
"ServerTrustCertificatesOperations",
"EndpointCertificatesOperations",
"ManagedDatabaseSensitivityLabelsOperations",
Expand Down Expand Up @@ -342,6 +341,7 @@
"ManagedInstancesOperations",
"ServersOperations",
"ReplicationLinksOperations",
"DistributedAvailabilityGroupsOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading

0 comments on commit fd3d6b9

Please sign in to comment.