Skip to content

Commit 2c998ba

Browse files
author
SDKAuto
committed
CodeGen from PR 30969 in Azure/azure-rest-api-specs
Merge a43f60704f9d3bffa1123b5360941ee54e69af1f into c2bf2a2da705b6e049597a5ead78bf056c3ed16a
1 parent 2a42241 commit 2c998ba

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

sdk/sql/azure-mgmt-sql/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "fa6609332acece21de44c0bf885cbcb3d87bd01f",
2+
"commit": "fd5a91c0469ae06c8d400b32206cc93c1c20e577",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
66
"@autorest/[email protected]",
77
"@autorest/[email protected]"
88
],
9-
"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",
9+
"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",
1010
"readme": "specification/sql/resource-manager/readme.md"
1111
}

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "4.0.0b19"
9+
VERSION = "0.9.0"

sdk/sql/azure-mgmt-sql/generated_samples/update_short_term_retention_policy.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from azure.identity import DefaultAzureCredential
1010

1111
from azure.mgmt.sql import SqlManagementClient
12-
1312
"""
1413
# PREREQUISITES
1514
pip install azure-identity
@@ -22,24 +21,22 @@
2221
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
2322
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
2423
"""
25-
26-
2724
def main():
2825
client = SqlManagementClient(
2926
credential=DefaultAzureCredential(),
3027
subscription_id="00000000-1111-2222-3333-444444444444",
3128
)
3229

33-
response = client.backup_short_term_retention_policies.begin_create_or_update(
34-
resource_group_name="resourceGroup",
35-
server_name="testsvr",
36-
database_name="testdb",
37-
policy_name="default",
38-
parameters={"properties": {"diffBackupIntervalInHours": 24, "retentionDays": 7}},
30+
response = client.backup_short_term_retention_policies.begin_update(
31+
resource_group_name='resourceGroup',
32+
server_name='testsvr',
33+
database_name='testdb',
34+
policy_name='default',
35+
parameters={'properties': {'diffBackupIntervalInHours': 24, 'retentionDays': 7}},
3936
).result()
4037
print(response)
4138

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

0 commit comments

Comments
 (0)