-
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 (#2276)
* Generated from 69b1a9a3786e3a35c4a4444a6b529bda4177ff4f (#2275) Fixing language * Generated from c7c6787a288fdc3447bfd28568032e1c966275e7 (#2279) Update config for Go SDK Switched to package-2018-04 per request of the compute team (similar change was done for package-2017-03). Removed package-2017-12 for now as it fails to build. * Generated from bf63e9df9116fbec8a70a3ef4c421fd4b5f4323b (#2284) Adding UpdateResource definition to old Swagger versions * [AutoPR compute/resource-manager] Added Eviction Policy Property for VirtualMachineScaleSetVMProfile for version 2017-12-01 (#2364) * Generated from ab266460a5418919d40261eb06f280da380e771a comit * Generated from 57858e7e576c2e84a8ddc038e8e915497b7a2c3d Changed evictionpolicy modelasstring to true * [AutoPR compute/resource-manager] OS History API - Swagger (#2365) * Generated from fd4e8578e4ebf94e63cccd4de22d4b633626e9c0 modified Json file * Generated from 2c66a615c1880352c0e89d365597ce33da1fd8e8 changed description * Generated from 169017ef5a757f9170aa878474cb88c23a79f058 removed PIR to use exiting ImageRef * Generated from 169017ef5a757f9170aa878474cb88c23a79f058 removed PIR to use exiting ImageRef * Generated from ad62e3f769a1ae92f598e0e3fbb8e91b12321c98 (#2408) Fix minor typos in compute. * Fix invalid models in Compute * azure-mgmt-compute 4.0.0rc2
- Loading branch information
1 parent
1bd6dc2
commit 00f4fdf
Showing
71 changed files
with
2,403 additions
and
91 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
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.