Skip to content

Commit a906304

Browse files
author
SDKAuto
committed
CodeGen from PR 30912 in Azure/azure-rest-api-specs
Merge 99da8c3449c28a7beb02224eb4bd1fd25d3fe3ac into 838d84411303b55e628b4d737b12f5ebdc114635
1 parent c065216 commit a906304

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
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": "b7544ef784eb8a26dcfb92747af4e9d7264b792a",
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_managed_short_term_retention_policy.py

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

1111
from azure.mgmt.sql import SqlManagementClient
12+
1213
"""
1314
# PREREQUISITES
1415
pip install azure-identity
@@ -21,22 +22,24 @@
2122
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
2223
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
2324
"""
25+
26+
2427
def main():
2528
client = SqlManagementClient(
2629
credential=DefaultAzureCredential(),
2730
subscription_id="00000000-1111-2222-3333-444444444444",
2831
)
2932

30-
response = client.managed_backup_short_term_retention_policies.begin_update(
31-
resource_group_name='resourceGroup',
32-
managed_instance_name='testsvr',
33-
database_name='testdb',
34-
policy_name='default',
35-
parameters={'properties': {'retentionDays': 14}},
33+
response = client.managed_backup_short_term_retention_policies.begin_create_or_update(
34+
resource_group_name="resourceGroup",
35+
managed_instance_name="testsvr",
36+
database_name="testdb",
37+
policy_name="default",
38+
parameters={"properties": {"retentionDays": 14}},
3639
).result()
3740
print(response)
3841

42+
3943
# x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/UpdateManagedShortTermRetentionPolicy.json
4044
if __name__ == "__main__":
4145
main()
42-
main()

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)