-
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 Reimage API support for ephem…
…eral os disks in single VM (#3664) * Generated from 80e525cac7ec97a83050ccbec25446d38e6112ee updated swagger changes for reimage operation in single vm * Packaging update of azure-mgmt-compute * Generated from adb0812156159adb1b31ba461753f52afbb50085 fixed validation errors
- Loading branch information
1 parent
8ef8352
commit 1f6a253
Showing
20 changed files
with
630 additions
and
20 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
29 changes: 29 additions & 0 deletions
29
...-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_reimage_parameters.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 VirtualMachineReimageParameters(Model): | ||
"""Paramaters for Reimaging Virtual Machine. Default value for OSDisk : true. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualMachineReimageParameters, self).__init__(**kwargs) | ||
self.temp_disk = kwargs.get('temp_disk', None) |
29 changes: 29 additions & 0 deletions
29
...t-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_reimage_parameters_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 VirtualMachineReimageParameters(Model): | ||
"""Paramaters for Reimaging Virtual Machine. Default value for OSDisk : true. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, *, temp_disk: bool=None, **kwargs) -> None: | ||
super(VirtualMachineReimageParameters, self).__init__(**kwargs) | ||
self.temp_disk = temp_disk |
34 changes: 34 additions & 0 deletions
34
...ute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_reimage_parameters.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,34 @@ | ||
# 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 .virtual_machine_scale_set_vm_reimage_parameters import VirtualMachineScaleSetVMReimageParameters | ||
|
||
|
||
class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): | ||
"""Describes a Virtual Machine Scale Set VM Reimage Parameters. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
:param instance_ids: The virtual machine scale set instance ids. Omitting | ||
the virtual machine scale set instance ids will result in the operation | ||
being performed on all virtual machines in the virtual machine scale set. | ||
:type instance_ids: list[str] | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualMachineScaleSetReimageParameters, self).__init__(**kwargs) | ||
self.instance_ids = kwargs.get('instance_ids', None) |
34 changes: 34 additions & 0 deletions
34
...azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_reimage_parameters_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,34 @@ | ||
# 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 .virtual_machine_scale_set_vm_reimage_parameters_py3 import VirtualMachineScaleSetVMReimageParameters | ||
|
||
|
||
class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): | ||
"""Describes a Virtual Machine Scale Set VM Reimage Parameters. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
:param instance_ids: The virtual machine scale set instance ids. Omitting | ||
the virtual machine scale set instance ids will result in the operation | ||
being performed on all virtual machines in the virtual machine scale set. | ||
:type instance_ids: list[str] | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, *, temp_disk: bool=None, instance_ids=None, **kwargs) -> None: | ||
super(VirtualMachineScaleSetReimageParameters, self).__init__(temp_disk=temp_disk, **kwargs) | ||
self.instance_ids = instance_ids |
28 changes: 28 additions & 0 deletions
28
.../azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_reimage_parameters.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 .virtual_machine_reimage_parameters import VirtualMachineReimageParameters | ||
|
||
|
||
class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): | ||
"""Describes a Virtual Machine Scale Set VM Reimage Parameters. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualMachineScaleSetVMReimageParameters, self).__init__(**kwargs) |
28 changes: 28 additions & 0 deletions
28
...re/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_reimage_parameters_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 .virtual_machine_reimage_parameters_py3 import VirtualMachineReimageParameters | ||
|
||
|
||
class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): | ||
"""Describes a Virtual Machine Scale Set VM Reimage Parameters. | ||
:param temp_disk: Specified whether to reimage temp disk. Default value: | ||
false. | ||
:type temp_disk: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, *, temp_disk: bool=None, **kwargs) -> None: | ||
super(VirtualMachineScaleSetVMReimageParameters, self).__init__(temp_disk=temp_disk, **kwargs) |
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
Oops, something went wrong.