-
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.
Generated from bf63e9df9116fbec8a70a3ef4c421fd4b5f4323b (#2284)
Adding UpdateResource definition to old Swagger versions
- Loading branch information
1 parent
66f783a
commit 24dfc4e
Showing
46 changed files
with
1,908 additions
and
41 deletions.
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
28 changes: 28 additions & 0 deletions
28
azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/update_resource.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,28 @@ | ||
# 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 UpdateResource(Model): | ||
"""The Update Resource model definition. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(UpdateResource, self).__init__(**kwargs) | ||
self.tags = kwargs.get('tags', None) |
28 changes: 28 additions & 0 deletions
28
azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/update_resource_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,28 @@ | ||
# 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 UpdateResource(Model): | ||
"""The Update Resource model definition. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, *, tags=None, **kwargs) -> None: | ||
super(UpdateResource, self).__init__(**kwargs) | ||
self.tags = tags |
62 changes: 62 additions & 0 deletions
62
azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_extension_update.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,62 @@ | ||
# 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 .update_resource import UpdateResource | ||
|
||
|
||
class VirtualMachineExtensionUpdate(UpdateResource): | ||
"""Describes a Virtual Machine Extension. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param force_update_tag: How the extension handler should be forced to | ||
update even if the extension configuration has not changed. | ||
:type force_update_tag: str | ||
:param publisher: The name of the extension handler publisher. | ||
:type publisher: str | ||
:param type: Specifies the type of the extension; an example is | ||
"CustomScriptExtension". | ||
:type type: str | ||
:param type_handler_version: Specifies the version of the script handler. | ||
:type type_handler_version: str | ||
:param auto_upgrade_minor_version: Indicates whether the extension should | ||
use a newer minor version if one is available at deployment time. Once | ||
deployed, however, the extension will not upgrade minor versions unless | ||
redeployed, even with this property set to true. | ||
:type auto_upgrade_minor_version: bool | ||
:param settings: Json formatted public settings for the extension. | ||
:type settings: object | ||
:param protected_settings: The extension can contain either | ||
protectedSettings or protectedSettingsFromKeyVault or no protected | ||
settings at all. | ||
:type protected_settings: object | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, | ||
'publisher': {'key': 'properties.publisher', 'type': 'str'}, | ||
'type': {'key': 'properties.type', 'type': 'str'}, | ||
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, | ||
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, | ||
'settings': {'key': 'properties.settings', 'type': 'object'}, | ||
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualMachineExtensionUpdate, self).__init__(**kwargs) | ||
self.force_update_tag = kwargs.get('force_update_tag', None) | ||
self.publisher = kwargs.get('publisher', None) | ||
self.type = kwargs.get('type', None) | ||
self.type_handler_version = kwargs.get('type_handler_version', None) | ||
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) | ||
self.settings = kwargs.get('settings', None) | ||
self.protected_settings = kwargs.get('protected_settings', None) |
62 changes: 62 additions & 0 deletions
62
...gmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_extension_update_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,62 @@ | ||
# 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 .update_resource import UpdateResource | ||
|
||
|
||
class VirtualMachineExtensionUpdate(UpdateResource): | ||
"""Describes a Virtual Machine Extension. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param force_update_tag: How the extension handler should be forced to | ||
update even if the extension configuration has not changed. | ||
:type force_update_tag: str | ||
:param publisher: The name of the extension handler publisher. | ||
:type publisher: str | ||
:param type: Specifies the type of the extension; an example is | ||
"CustomScriptExtension". | ||
:type type: str | ||
:param type_handler_version: Specifies the version of the script handler. | ||
:type type_handler_version: str | ||
:param auto_upgrade_minor_version: Indicates whether the extension should | ||
use a newer minor version if one is available at deployment time. Once | ||
deployed, however, the extension will not upgrade minor versions unless | ||
redeployed, even with this property set to true. | ||
:type auto_upgrade_minor_version: bool | ||
:param settings: Json formatted public settings for the extension. | ||
:type settings: object | ||
:param protected_settings: The extension can contain either | ||
protectedSettings or protectedSettingsFromKeyVault or no protected | ||
settings at all. | ||
:type protected_settings: object | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, | ||
'publisher': {'key': 'properties.publisher', 'type': 'str'}, | ||
'type': {'key': 'properties.type', 'type': 'str'}, | ||
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, | ||
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, | ||
'settings': {'key': 'properties.settings', 'type': 'object'}, | ||
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, | ||
} | ||
|
||
def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None: | ||
super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) | ||
self.force_update_tag = force_update_tag | ||
self.publisher = publisher | ||
self.type = type | ||
self.type_handler_version = type_handler_version | ||
self.auto_upgrade_minor_version = auto_upgrade_minor_version | ||
self.settings = settings | ||
self.protected_settings = protected_settings |
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
Oops, something went wrong.