Skip to content

Commit

Permalink
[AutoPR compute/resource-manager] ToBeDetached added in Json and an e…
Browse files Browse the repository at this point in the history
…xample added (#4904)

* Generated from 382b2ac4c518ef3d724eb7a924ccf401e818d726

ToBeDetached added in Json and an example added

* Generated from bd18df8f7c048962dad6e93250d1185b2acc13ce

Update compute.json

Updated description for toBeDetached flag

* Generated from db5a2cceb7ee6e577e0526edc050d92b653d8733

Removed from OS disk and added to dataDisk
  • Loading branch information
AutorestCI authored Apr 24, 2019
1 parent f4172be commit 7bc0f1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class DataDisk(Model):
:param managed_disk: The managed disk parameters.
:type managed_disk:
~azure.mgmt.compute.v2019_03_01.models.ManagedDiskParameters
:param to_be_detached: Specifies whether the datadisk is in process of
detachment from the VirtualMachine/VirtualMachineScaleset
:type to_be_detached: bool
"""

_validation = {
Expand All @@ -72,6 +75,7 @@ class DataDisk(Model):
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
'to_be_detached': {'key': 'toBeDetached', 'type': 'bool'},
}

def __init__(self, **kwargs):
Expand All @@ -85,3 +89,4 @@ def __init__(self, **kwargs):
self.create_option = kwargs.get('create_option', None)
self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.managed_disk = kwargs.get('managed_disk', None)
self.to_be_detached = kwargs.get('to_be_detached', None)
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class DataDisk(Model):
:param managed_disk: The managed disk parameters.
:type managed_disk:
~azure.mgmt.compute.v2019_03_01.models.ManagedDiskParameters
:param to_be_detached: Specifies whether the datadisk is in process of
detachment from the VirtualMachine/VirtualMachineScaleset
:type to_be_detached: bool
"""

_validation = {
Expand All @@ -72,9 +75,10 @@ class DataDisk(Model):
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
'to_be_detached': {'key': 'toBeDetached', 'type': 'bool'},
}

def __init__(self, *, lun: int, create_option, name: str=None, vhd=None, image=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, managed_disk=None, **kwargs) -> None:
def __init__(self, *, lun: int, create_option, name: str=None, vhd=None, image=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, managed_disk=None, to_be_detached: bool=None, **kwargs) -> None:
super(DataDisk, self).__init__(**kwargs)
self.lun = lun
self.name = name
Expand All @@ -85,3 +89,4 @@ def __init__(self, *, lun: int, create_option, name: str=None, vhd=None, image=N
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
self.to_be_detached = to_be_detached

0 comments on commit 7bc0f1d

Please sign in to comment.