-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR compute/resource-manager] added autoOSUpgradePolicy to Upgrad…
…ePolicy (#2505) * Generated from 57e4037bd66b30a7f95fda331085521b2d669c94 added autoOSUpgradePolicy * Generated from 27752fd2417b688d4aba3bcde1ada9231659d208 added deafult value as false * Generated from 27752fd2417b688d4aba3bcde1ada9231659d208 added deafult value as false
- Loading branch information
1 parent
1f8f3f6
commit 6715555
Showing
5 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/auto_os_upgrade_policy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AutoOSUpgradePolicy(Model): | ||
"""The configuration parameters used for performing automatic OS upgrade. | ||
:param disable_auto_rollback: Whether OS image rollback feature should be | ||
disabled. Default value is false. | ||
:type disable_auto_rollback: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'disable_auto_rollback': {'key': 'disableAutoRollback', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AutoOSUpgradePolicy, self).__init__(**kwargs) | ||
self.disable_auto_rollback = kwargs.get('disable_auto_rollback', None) |
29 changes: 29 additions & 0 deletions
29
azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/auto_os_upgrade_policy_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AutoOSUpgradePolicy(Model): | ||
"""The configuration parameters used for performing automatic OS upgrade. | ||
:param disable_auto_rollback: Whether OS image rollback feature should be | ||
disabled. Default value is false. | ||
:type disable_auto_rollback: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'disable_auto_rollback': {'key': 'disableAutoRollback', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, *, disable_auto_rollback: bool=None, **kwargs) -> None: | ||
super(AutoOSUpgradePolicy, self).__init__(**kwargs) | ||
self.disable_auto_rollback = disable_auto_rollback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters