Skip to content

[AutoPR azure-mgmt-sql] Adding IsZoneResilientProvisioningAllowed property in the response for location capabilities api #9002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "69c253b53ed7ce0781e224379d1901d62c6fc1ce",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --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/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/sql/resource-manager/readme.md"
}
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 = "0.9.0"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from azure.identity import DefaultAzureCredential

from azure.mgmt.sql import SqlManagementClient

"""
# PREREQUISITES
pip install azure-identity
Expand All @@ -21,22 +22,24 @@
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""


def main():
client = SqlManagementClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-1111-2222-3333-444444444444",
)

response = client.managed_restorable_dropped_database_backup_short_term_retention_policies.begin_update(
resource_group_name='resourceGroup',
managed_instance_name='testsvr',
restorable_dropped_database_id='testdb,131403269876900000',
policy_name='default',
parameters={'properties': {'retentionDays': 14}},
response = client.managed_restorable_dropped_database_backup_short_term_retention_policies.begin_create_or_update(
resource_group_name="resourceGroup",
managed_instance_name="testsvr",
restorable_dropped_database_id="testdb,131403269876900000",
policy_name="default",
parameters={"properties": {"retentionDays": 14}},
).result()
print(response)


# x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/UpdateManagedShortTermRetentionPolicyRestorableDropped.json
if __name__ == "__main__":
main()
main()
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from azure.identity import DefaultAzureCredential

from azure.mgmt.sql import SqlManagementClient

"""
# PREREQUISITES
pip install azure-identity
Expand All @@ -22,24 +21,22 @@
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""


def main():
client = SqlManagementClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-1111-2222-3333-444444444444",
)

response = client.backup_short_term_retention_policies.begin_create_or_update(
resource_group_name="resourceGroup",
server_name="testsvr",
database_name="testdb",
policy_name="default",
parameters={"properties": {"diffBackupIntervalInHours": 24, "retentionDays": 7}},
response = client.backup_short_term_retention_policies.begin_update(
resource_group_name='resourceGroup',
server_name='testsvr',
database_name='testdb',
policy_name='default',
parameters={'properties': {'diffBackupIntervalInHours': 24, 'retentionDays': 7}},
).result()
print(response)


# x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/UpdateShortTermRetentionPolicy.json
if __name__ == "__main__":
main()
main()