Skip to content

Commit

Permalink
[AutoPR compute/resource-manager] Dev/ccelik/dedicated host swagger (#…
Browse files Browse the repository at this point in the history
…6149)

* Generated from beed92f79dacff0ce3d1a65d3ecf42449d17a47c

Removed extra comma

* Packaging update of azure-mgmt-compute
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Jul 20, 2019
1 parent ec2842e commit 874c341
Show file tree
Hide file tree
Showing 12 changed files with 1,792 additions and 4 deletions.
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

0 comments on commit 874c341

Please sign in to comment.