Skip to content

Commit

Permalink
CodeGen from PR 16502 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fix S360 item for FSPG swagger by adding default value to backupRetentionDays and maintenanceWindow (Azure#16502)

* Changed FSPG RestartParameter.failoverMode from string to enum for API 2021-06-01, 2021-06-01-preview, and 2021-06-15-privatepreview

* Change enum first letter to lower case

* Change to upper case

* Fix S360 bugs for swagger FSPG 2020-02-14-preview, 2021-06-01-preview and 2021-06-01 APIs

* Fix S360 item by adding default value to backupRetentionDays and maintenanceWindow
  • Loading branch information
SDKAuto committed Nov 1, 2021
1 parent 71bd202 commit 897a21c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/rdbms/azure-mgmt-rdbms/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "350d1c0a395d133a9e02cf00afdaf8bdb336ce56",
"commit": "9dc61b35e333e0f753e36aac803211b22e15eca3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/postgresql/resource-manager/readme.md"
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 = "10.0.0"
VERSION = "1.0.0b1"
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 = "10.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
**kwargs
):
super(Backup, self).__init__(**kwargs)
self.backup_retention_days = kwargs.get('backup_retention_days', None)
self.backup_retention_days = kwargs.get('backup_retention_days', 7)
self.geo_redundant_backup = kwargs.get('geo_redundant_backup', None)
self.earliest_restore_date = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Backup(msrest.serialization.Model):
def __init__(
self,
*,
backup_retention_days: Optional[int] = None,
backup_retention_days: Optional[int] = 7,
geo_redundant_backup: Optional[Union[str, "GeoRedundantBackupEnum"]] = None,
**kwargs
):
Expand Down

0 comments on commit 897a21c

Please sign in to comment.