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] Swagger changes for adding diffdisksettings property for the Ephemeral OS Disks #3373

Merged
merged 4 commits into from
Sep 24, 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 @@ -38,6 +38,7 @@
from .key_vault_key_reference_py3 import KeyVaultKeyReference
from .disk_encryption_settings_py3 import DiskEncryptionSettings
from .virtual_hard_disk_py3 import VirtualHardDisk
from .diff_disk_settings_py3 import DiffDiskSettings
from .managed_disk_parameters_py3 import ManagedDiskParameters
from .os_disk_py3 import OSDisk
from .data_disk_py3 import DataDisk
Expand Down Expand Up @@ -202,6 +203,7 @@
from .key_vault_key_reference import KeyVaultKeyReference
from .disk_encryption_settings import DiskEncryptionSettings
from .virtual_hard_disk import VirtualHardDisk
from .diff_disk_settings import DiffDiskSettings
from .managed_disk_parameters import ManagedDiskParameters
from .os_disk import OSDisk
from .data_disk import DataDisk
Expand Down Expand Up @@ -356,11 +358,13 @@
from .snapshot_paged import SnapshotPaged
from .compute_management_client_enums import (
StatusLevelTypes,
AvailabilitySetSkuTypes,
OperatingSystemTypes,
VirtualMachineSizeTypes,
CachingTypes,
DiskCreateOptionTypes,
StorageAccountTypes,
DiffDiskOptions,
PassNames,
ComponentNames,
SettingNames,
Expand Down Expand Up @@ -418,6 +422,7 @@
'KeyVaultKeyReference',
'DiskEncryptionSettings',
'VirtualHardDisk',
'DiffDiskSettings',
'ManagedDiskParameters',
'OSDisk',
'DataDisk',
Expand Down Expand Up @@ -571,11 +576,13 @@
'DiskPaged',
'SnapshotPaged',
'StatusLevelTypes',
'AvailabilitySetSkuTypes',
'OperatingSystemTypes',
'VirtualMachineSizeTypes',
'CachingTypes',
'DiskCreateOptionTypes',
'StorageAccountTypes',
'DiffDiskOptions',
'PassNames',
'ComponentNames',
'SettingNames',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
"""Enables or disables a capability on the virtual machine or virtual machine
scale set.

:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
more managed data disks with UltraSSD_LRS storage account on the VM or
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
a virtual machine or virtual machine scale set only if this property is
enabled.
:param ultra_ssd_enabled: The flag that enables or disables a capability
to have one or more managed data disks with UltraSSD_LRS storage account
type on the VM or VMSS. Managed disks with storage account type
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
set only if this property is enabled.
:type ultra_ssd_enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
"""Enables or disables a capability on the virtual machine or virtual machine
scale set.

:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
more managed data disks with UltraSSD_LRS storage account on the VM or
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
a virtual machine or virtual machine scale set only if this property is
enabled.
:param ultra_ssd_enabled: The flag that enables or disables a capability
to have one or more managed data disks with UltraSSD_LRS storage account
type on the VM or VMSS. Managed disks with storage account type
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
set only if this property is enabled.
:type ultra_ssd_enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
:ivar statuses: The resource status information.
:vartype statuses:
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
:param sku: Sku of the availability set
:param sku: Sku of the availability set, only name is required to be set.
See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for
virtual machines with managed disks and 'Classic' for virtual machines
with unmanaged disks. Default value is 'Classic'.
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
:ivar statuses: The resource status information.
:vartype statuses:
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
:param sku: Sku of the availability set
:param sku: Sku of the availability set, only name is required to be set.
See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for
virtual machines with managed disks and 'Classic' for virtual machines
with unmanaged disks. Default value is 'Classic'.
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class StatusLevelTypes(str, Enum):
error = "Error"


class AvailabilitySetSkuTypes(str, Enum):

classic = "Classic"
aligned = "Aligned"


class OperatingSystemTypes(str, Enum):

windows = "Windows"
Expand Down Expand Up @@ -217,6 +223,11 @@ class StorageAccountTypes(str, Enum):
ultra_ssd_lrs = "UltraSSD_LRS"


class DiffDiskOptions(str, Enum):

local = "Local"


class PassNames(str, Enum):

oobe_system = "OobeSystem"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
"""

_attribute_map = {
'option': {'key': 'option', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DiffDiskSettings, self).__init__(**kwargs)
self.option = kwargs.get('option', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
"""

_attribute_map = {
'option': {'key': 'option', 'type': 'str'},
}

def __init__(self, *, option=None, **kwargs) -> None:
super(DiffDiskSettings, self).__init__(**kwargs)
self.option = option
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


class Gallery(Resource):
"""Specifies information about the gallery that you want to create or update.
"""Specifies information about the Shared Image Gallery that you want to
create or update.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -30,7 +31,8 @@ class Gallery(Resource):
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:param description: The description of this gallery resource.
:param description: The description of this Shared Image Gallery resource.
This property is updateable.
:type description: str
:param identifier:
:type identifier: ~azure.mgmt.compute.v2018_06_01.models.GalleryIdentifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class GalleryArtifactPublishingProfileBase(Model):

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

:param target_regions: The target regions where the artifact is going to
be published.
:param target_regions: The target regions where the Image Version is going
to be replicated to. This property is updateable.
:type target_regions:
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
:param source: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class GalleryArtifactPublishingProfileBase(Model):

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

:param target_regions: The target regions where the artifact is going to
be published.
:param target_regions: The target regions where the Image Version is going
to be replicated to. This property is updateable.
:type target_regions:
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
:param source: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class GalleryArtifactSource(Model):
"""The source of the gallery artifact.
"""The source image from which the Image Version is going to be created.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class GalleryArtifactSource(Model):
"""The source of the gallery artifact.
"""The source image from which the Image Version is going to be created.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ class GalleryDataDiskImage(GalleryDiskImage):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar size_in_gb: It indicates the size of the VHD to create.
:ivar size_in_gb: This property indicates the size of the VHD to be
created.
:vartype size_in_gb: int
:ivar host_caching: The host caching of the disk. Valid values are 'None',
'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly',
'ReadWrite'
:vartype host_caching: str or
~azure.mgmt.compute.v2018_06_01.models.HostCaching
:ivar lun: Specifies the logical unit number of the data disk. This value
is used to identify data disks within the VM and therefore must be unique
for each data disk attached to a VM.
:ivar lun: This property specifies the logical unit number of the data
disk. This value is used to identify data disks within the Virtual Machine
and therefore must be unique for each data disk attached to the Virtual
Machine.
:vartype lun: int
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ class GalleryDataDiskImage(GalleryDiskImage):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar size_in_gb: It indicates the size of the VHD to create.
:ivar size_in_gb: This property indicates the size of the VHD to be
created.
:vartype size_in_gb: int
:ivar host_caching: The host caching of the disk. Valid values are 'None',
'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly',
'ReadWrite'
:vartype host_caching: str or
~azure.mgmt.compute.v2018_06_01.models.HostCaching
:ivar lun: Specifies the logical unit number of the data disk. This value
is used to identify data disks within the VM and therefore must be unique
for each data disk attached to a VM.
:ivar lun: This property specifies the logical unit number of the data
disk. This value is used to identify data disks within the Virtual Machine
and therefore must be unique for each data disk attached to the Virtual
Machine.
:vartype lun: int
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class GalleryDiskImage(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar size_in_gb: It indicates the size of the VHD to create.
:ivar size_in_gb: This property indicates the size of the VHD to be
created.
:vartype size_in_gb: int
:ivar host_caching: The host caching of the disk. Valid values are 'None',
'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class GalleryDiskImage(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar size_in_gb: It indicates the size of the VHD to create.
:ivar size_in_gb: This property indicates the size of the VHD to be
created.
:vartype size_in_gb: int
:ivar host_caching: The host caching of the disk. Valid values are 'None',
'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class GalleryIdentifier(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar unique_name: The unique name of the gallery
:ivar unique_name: The unique name of the Shared Image Gallery. This name
is generated automatically by Azure.
:vartype unique_name: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class GalleryIdentifier(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar unique_name: The unique name of the gallery
:ivar unique_name: The unique name of the Shared Image Gallery. This name
is generated automatically by Azure.
:vartype unique_name: str
"""

Expand Down
Loading