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] Dev/ccelik/dedicated host swagger #6149

Merged
merged 2 commits into from
Jul 3, 2019
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
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Compute Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ComputeManagementClient(MultiApiClientMixin, SDKClient):
_PROFILE_TAG: {
None: DEFAULT_API_VERSION,
'availability_sets': '2019-03-01',
'dedicated_host_groups': '2019-03-01',
'dedicated_hosts': '2019-03-01',
'disks': '2018-09-30',
'galleries': '2019-03-01',
'gallery_image_versions': '2019-03-01',
Expand Down Expand Up @@ -181,6 +183,32 @@ def availability_sets(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def dedicated_host_groups(self):
"""Instance depends on the API version:

* 2019-03-01: :class:`DedicatedHostGroupsOperations<azure.mgmt.compute.v2019_03_01.operations.DedicatedHostGroupsOperations>`
"""
api_version = self._get_api_version('dedicated_host_groups')
if api_version == '2019-03-01':
from .v2019_03_01.operations import DedicatedHostGroupsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def dedicated_hosts(self):
"""Instance depends on the API version:

* 2019-03-01: :class:`DedicatedHostsOperations<azure.mgmt.compute.v2019_03_01.operations.DedicatedHostsOperations>`
"""
api_version = self._get_api_version('dedicated_hosts')
if api_version == '2019-03-01':
from .v2019_03_01.operations import DedicatedHostsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def disks(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from .operations import Operations
from .operations import AvailabilitySetsOperations
from .operations import ProximityPlacementGroupsOperations
from .operations import DedicatedHostGroupsOperations
from .operations import DedicatedHostsOperations
from .operations import VirtualMachineExtensionImagesOperations
from .operations import VirtualMachineExtensionsOperations
from .operations import VirtualMachineImagesOperations
Expand Down Expand Up @@ -47,6 +49,10 @@ class ComputeManagementClient(SDKClient):
:vartype availability_sets: azure.mgmt.compute.v2019_03_01.operations.AvailabilitySetsOperations
:ivar proximity_placement_groups: ProximityPlacementGroups operations
:vartype proximity_placement_groups: azure.mgmt.compute.v2019_03_01.operations.ProximityPlacementGroupsOperations
:ivar dedicated_host_groups: DedicatedHostGroups operations
:vartype dedicated_host_groups: azure.mgmt.compute.v2019_03_01.operations.DedicatedHostGroupsOperations
:ivar dedicated_hosts: DedicatedHosts operations
:vartype dedicated_hosts: azure.mgmt.compute.v2019_03_01.operations.DedicatedHostsOperations
:ivar virtual_machine_extension_images: VirtualMachineExtensionImages operations
:vartype virtual_machine_extension_images: azure.mgmt.compute.v2019_03_01.operations.VirtualMachineExtensionImagesOperations
:ivar virtual_machine_extensions: VirtualMachineExtensions operations
Expand Down Expand Up @@ -107,6 +113,10 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.proximity_placement_groups = ProximityPlacementGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_host_groups = DedicatedHostGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_hosts = DedicatedHostsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_extensions = VirtualMachineExtensionsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
from ._models_py3 import ComputeOperationValue
from ._models_py3 import DataDisk
from ._models_py3 import DataDiskImage
from ._models_py3 import DedicatedHost
from ._models_py3 import DedicatedHostAllocatableVM
from ._models_py3 import DedicatedHostAvailableCapacity
from ._models_py3 import DedicatedHostCapacity
from ._models_py3 import DedicatedHostGroup
from ._models_py3 import DedicatedHostGroupUpdate
from ._models_py3 import DedicatedHostInstanceView
from ._models_py3 import DedicatedHostUpdate
from ._models_py3 import DiagnosticsProfile
from ._models_py3 import DiffDiskSettings
from ._models_py3 import Disallowed
Expand Down Expand Up @@ -184,6 +192,14 @@
from ._models import ComputeOperationValue
from ._models import DataDisk
from ._models import DataDiskImage
from ._models import DedicatedHost
from ._models import DedicatedHostAllocatableVM
from ._models import DedicatedHostAvailableCapacity
from ._models import DedicatedHostCapacity
from ._models import DedicatedHostGroup
from ._models import DedicatedHostGroupUpdate
from ._models import DedicatedHostInstanceView
from ._models import DedicatedHostUpdate
from ._models import DiagnosticsProfile
from ._models import DiffDiskSettings
from ._models import Disallowed
Expand Down Expand Up @@ -331,6 +347,8 @@
from ._models import WinRMListener
from ._paged_models import AvailabilitySetPaged
from ._paged_models import ComputeOperationValuePaged
from ._paged_models import DedicatedHostGroupPaged
from ._paged_models import DedicatedHostPaged
from ._paged_models import GalleryImagePaged
from ._paged_models import GalleryImageVersionPaged
from ._paged_models import GalleryPaged
Expand All @@ -350,6 +368,7 @@
StatusLevelTypes,
AvailabilitySetSkuTypes,
ProximityPlacementGroupType,
DedicatedHostLicenseTypes,
OperatingSystemTypes,
VirtualMachineSizeTypes,
CachingTypes,
Expand Down Expand Up @@ -397,6 +416,14 @@
'ComputeOperationValue',
'DataDisk',
'DataDiskImage',
'DedicatedHost',
'DedicatedHostAllocatableVM',
'DedicatedHostAvailableCapacity',
'DedicatedHostCapacity',
'DedicatedHostGroup',
'DedicatedHostGroupUpdate',
'DedicatedHostInstanceView',
'DedicatedHostUpdate',
'DiagnosticsProfile',
'DiffDiskSettings',
'Disallowed',
Expand Down Expand Up @@ -546,6 +573,8 @@
'AvailabilitySetPaged',
'VirtualMachineSizePaged',
'ProximityPlacementGroupPaged',
'DedicatedHostGroupPaged',
'DedicatedHostPaged',
'UsagePaged',
'VirtualMachinePaged',
'ImagePaged',
Expand All @@ -562,6 +591,7 @@
'StatusLevelTypes',
'AvailabilitySetSkuTypes',
'ProximityPlacementGroupType',
'DedicatedHostLicenseTypes',
'OperatingSystemTypes',
'VirtualMachineSizeTypes',
'CachingTypes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ class ProximityPlacementGroupType(str, Enum):
ultra = "Ultra"


class DedicatedHostLicenseTypes(str, Enum):

none = "None"
windows_server_hybrid = "Windows_Server_Hybrid"
windows_server_perpetual = "Windows_Server_Perpetual"


class OperatingSystemTypes(str, Enum):

windows = "Windows"
Expand Down
Loading