Skip to content

Commit

Permalink
[AutoRelease] t2-postgresqlflexibleservers-2024-10-08-80057(can only …
Browse files Browse the repository at this point in the history
…be merged by SDK owner) (#37767)

* code and test

* Update CHANGELOG.md

List of features coming into new api version

* Update CHANGELOG.md with correct formatting

To track changes included from initial preview version

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: azure-sdk <PythonSdkPipelines>
Co-authored-by: nasc17 <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent 0ec37cc commit d565c1a
Show file tree
Hide file tree
Showing 129 changed files with 862 additions and 627 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Release History

## 1.0.0 (2024-10-11)

### Features Added

- Enum `Origin` added member `CUSTOMER_ON_DEMAND`
- Model `ServerForUpdate` added property `administrator_login`
- Model `BackupsOperations` added method `begin_create`
- Model `BackupsOperations` added method `begin_delete`
- Added operation group `LongRunningBackupOperations`
- Added operation group `LongRunningBackupsOperations`
- Added operation group `MaintenancesOperations`
- Added operation group `LogFilesOperations`
- Added operation group `MigrationsOperations`
- Added operation group `PrivateEndpointConnectionOperations`
- Added operation group `VirtualEndpointsOperations`
- Added operation group `ServerThreatProtectionSettingsOperations`
- Added operation group `AdvancedThreatProtectionSettingsOperations`
- Added operation group `LocationBasedCapabilitySetOperations`
- Added operation group `OperationProgressOperations`
- Added operation group `OperationResultsOperations`
- Model `DataEncryption` has a new parameter `geo_backup_encryption_key_status`
- Model `DataEncryption` has a new parameter `geo_backup_key_uri`
- Model `DataEncryption` has a new parameter `geo_backup_user_assigned_identity_id`
- Model `DataEncryption` has a new parameter `primary_encryption_key_status`
- Model `Storage` has a new parameter `auto_grow`
- Model `Storage` has a new parameter `iops`
- Model `Storage` has a new parameter `iops_tier`
- Model `Storage` has a new parameter `throughput`
- Model `Storage` has a new parameter `type`
- Model `Server` has a new parameter `private_endpoint_connections`
- Model `Server` has a new parameter `replica`
- Model `ServerForUpdate` has a new parameter `replica`

### Breaking Changes

- Deleted or renamed client operation group `PostgreSQLManagementClient.quota_usages`
- Deleted or renamed model `NameProperty`
- Deleted or renamed model `QuotaUsage`
- Deleted or renamed model `QuotaUsagesOperations`

## 1.0.0b1 (2024-08-27)

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "d85634405ec3b905f1b0bfc350e47cb704aedb61",
"commit": "9a8af2acfafc4d7a23eff41b859d2d332f51b0bc",
"repository_url": "https:/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-flexibleserver-2023-12-01-preview --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-flexibleserver-2024-08-01 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/postgresql/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class PostgreSQLManagementClientConfiguration: # pylint: disable=too-many-insta
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2023-12-01-preview")
api_version: str = kwargs.pop("api_version", "2024-08-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
PrivateEndpointConnectionOperations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
QuotaUsagesOperations,
ReplicasOperations,
ServerCapabilitiesOperations,
ServerThreatProtectionSettingsOperations,
Expand Down Expand Up @@ -108,8 +107,6 @@ class PostgreSQLManagementClient(
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.postgresqlflexibleservers.operations.PrivateLinkResourcesOperations
:ivar quota_usages: QuotaUsagesOperations operations
:vartype quota_usages: azure.mgmt.postgresqlflexibleservers.operations.QuotaUsagesOperations
:ivar replicas: ReplicasOperations operations
:vartype replicas: azure.mgmt.postgresqlflexibleservers.operations.ReplicasOperations
:ivar log_files: LogFilesOperations operations
Expand All @@ -129,8 +126,8 @@ class PostgreSQLManagementClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -206,7 +203,6 @@ def __init__(
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.quota_usages = QuotaUsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
self.log_files = LogFilesOperations(self._client, self._config, self._serialize, self._deserialize)
self.server_threat_protection_settings = ServerThreatProtectionSettingsOperations(
Expand Down
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 = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class PostgreSQLManagementClientConfiguration: # pylint: disable=too-many-insta
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2023-12-01-preview")
api_version: str = kwargs.pop("api_version", "2024-08-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
PrivateEndpointConnectionOperations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
QuotaUsagesOperations,
ReplicasOperations,
ServerCapabilitiesOperations,
ServerThreatProtectionSettingsOperations,
Expand Down Expand Up @@ -108,9 +107,6 @@ class PostgreSQLManagementClient(
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.postgresqlflexibleservers.aio.operations.PrivateLinkResourcesOperations
:ivar quota_usages: QuotaUsagesOperations operations
:vartype quota_usages:
azure.mgmt.postgresqlflexibleservers.aio.operations.QuotaUsagesOperations
:ivar replicas: ReplicasOperations operations
:vartype replicas: azure.mgmt.postgresqlflexibleservers.aio.operations.ReplicasOperations
:ivar log_files: LogFilesOperations operations
Expand All @@ -130,8 +126,8 @@ class PostgreSQLManagementClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -207,7 +203,6 @@ def __init__(
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.quota_usages = QuotaUsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
self.log_files = LogFilesOperations(self._client, self._config, self._serialize, self._deserialize)
self.server_threat_protection_settings = ServerThreatProtectionSettingsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._quota_usages_operations import QuotaUsagesOperations
from ._replicas_operations import ReplicasOperations
from ._log_files_operations import LogFilesOperations
from ._server_threat_protection_settings_operations import ServerThreatProtectionSettingsOperations
Expand Down Expand Up @@ -56,7 +55,6 @@
"PrivateEndpointConnectionsOperations",
"PrivateEndpointConnectionOperations",
"PrivateLinkResourcesOperations",
"QuotaUsagesOperations",
"ReplicasOperations",
"LogFilesOperations",
"ServerThreatProtectionSettingsOperations",
Expand Down
Loading

0 comments on commit d565c1a

Please sign in to comment.