Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR compute/resource-manager] Make OSDisk in storage profile for VMImages optional #2170

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
class ImageStorageProfile(Model):
"""Describes a storage profile.

All required parameters must be populated in order to send to Azure.

:param os_disk: Required. Specifies information about the operating system
disk used by the virtual machine. <br><br> For more information about
disks, see [About disks and VHDs for Azure virtual
:param os_disk: Specifies information about the operating system disk used
by the virtual machine. <br><br> For more information about disks, see
[About disks and VHDs for Azure virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
:type os_disk: ~azure.mgmt.compute.v2017_12_01.models.ImageOSDisk
:param data_disks: Specifies the parameters that are used to add a data
Expand All @@ -34,10 +32,6 @@ class ImageStorageProfile(Model):
:type zone_resilient: bool
"""

_validation = {
'os_disk': {'required': True},
}

_attribute_map = {
'os_disk': {'key': 'osDisk', 'type': 'ImageOSDisk'},
'data_disks': {'key': 'dataDisks', 'type': '[ImageDataDisk]'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
class ImageStorageProfile(Model):
"""Describes a storage profile.

All required parameters must be populated in order to send to Azure.

:param os_disk: Required. Specifies information about the operating system
disk used by the virtual machine. <br><br> For more information about
disks, see [About disks and VHDs for Azure virtual
:param os_disk: Specifies information about the operating system disk used
by the virtual machine. <br><br> For more information about disks, see
[About disks and VHDs for Azure virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
:type os_disk: ~azure.mgmt.compute.v2017_12_01.models.ImageOSDisk
:param data_disks: Specifies the parameters that are used to add a data
Expand All @@ -34,17 +32,13 @@ class ImageStorageProfile(Model):
:type zone_resilient: bool
"""

_validation = {
'os_disk': {'required': True},
}

_attribute_map = {
'os_disk': {'key': 'osDisk', 'type': 'ImageOSDisk'},
'data_disks': {'key': 'dataDisks', 'type': '[ImageDataDisk]'},
'zone_resilient': {'key': 'zoneResilient', 'type': 'bool'},
}

def __init__(self, *, os_disk, data_disks=None, zone_resilient: bool=None, **kwargs) -> None:
def __init__(self, *, os_disk=None, data_disks=None, zone_resilient: bool=None, **kwargs) -> None:
super(ImageStorageProfile, self).__init__(**kwargs)
self.os_disk = os_disk
self.data_disks = data_disks
Expand Down