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] Add new API version 2019-07-01 for SIG swagger spec #6267

Merged
merged 2 commits into from
Jul 17, 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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class ComputeManagementClient(MultiApiClientMixin, SDKClient):
'dedicated_hosts': '2019-03-01',
'disks': '2018-09-30',
'galleries': '2019-03-01',
'gallery_application_versions': '2019-03-01',
'gallery_applications': '2019-03-01',
'gallery_image_versions': '2019-03-01',
'gallery_images': '2019-03-01',
'images': '2019-03-01',
Expand Down Expand Up @@ -250,6 +252,32 @@ def galleries(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 gallery_application_versions(self):
"""Instance depends on the API version:
* 2019-03-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryApplicationVersionsOperations>`
"""
api_version = self._get_api_version('gallery_application_versions')
if api_version == '2019-03-01':
from .v2019_03_01.operations import GalleryApplicationVersionsOperations 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 gallery_applications(self):
"""Instance depends on the API version:
* 2019-03-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryApplicationsOperations>`
"""
api_version = self._get_api_version('gallery_applications')
if api_version == '2019-03-01':
from .v2019_03_01.operations import GalleryApplicationsOperations 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 gallery_image_versions(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
from .operations import GalleriesOperations
from .operations import GalleryImagesOperations
from .operations import GalleryImageVersionsOperations
from .operations import GalleryApplicationsOperations
from .operations import GalleryApplicationVersionsOperations
from . import models


Expand Down Expand Up @@ -85,6 +87,10 @@ class ComputeManagementClient(SDKClient):
:vartype gallery_images: azure.mgmt.compute.v2019_03_01.operations.GalleryImagesOperations
:ivar gallery_image_versions: GalleryImageVersions operations
:vartype gallery_image_versions: azure.mgmt.compute.v2019_03_01.operations.GalleryImageVersionsOperations
:ivar gallery_applications: GalleryApplications operations
:vartype gallery_applications: azure.mgmt.compute.v2019_03_01.operations.GalleryApplicationsOperations
:ivar gallery_application_versions: GalleryApplicationVersions operations
:vartype gallery_application_versions: azure.mgmt.compute.v2019_03_01.operations.GalleryApplicationVersionsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -149,3 +155,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.gallery_image_versions = GalleryImageVersionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.gallery_applications = GalleryApplicationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.gallery_application_versions = GalleryApplicationVersionsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
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
Expand All @@ -38,6 +37,9 @@
from ._models_py3 import DiskEncryptionSettings
from ._models_py3 import DiskInstanceView
from ._models_py3 import Gallery
from ._models_py3 import GalleryApplication
from ._models_py3 import GalleryApplicationVersion
from ._models_py3 import GalleryApplicationVersionPublishingProfile
from ._models_py3 import GalleryArtifactPublishingProfileBase
from ._models_py3 import GalleryArtifactSource
from ._models_py3 import GalleryDataDiskImage
Expand Down Expand Up @@ -110,6 +112,7 @@
from ._models_py3 import UpgradePolicy
from ._models_py3 import Usage
from ._models_py3 import UsageName
from ._models_py3 import UserArtifactSource
from ._models_py3 import VaultCertificate
from ._models_py3 import VaultSecretGroup
from ._models_py3 import VirtualHardDisk
Expand Down Expand Up @@ -195,7 +198,6 @@
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
Expand All @@ -206,6 +208,9 @@
from ._models import DiskEncryptionSettings
from ._models import DiskInstanceView
from ._models import Gallery
from ._models import GalleryApplication
from ._models import GalleryApplicationVersion
from ._models import GalleryApplicationVersionPublishingProfile
from ._models import GalleryArtifactPublishingProfileBase
from ._models import GalleryArtifactSource
from ._models import GalleryDataDiskImage
Expand Down Expand Up @@ -278,6 +283,7 @@
from ._models import UpgradePolicy
from ._models import Usage
from ._models import UsageName
from ._models import UserArtifactSource
from ._models import VaultCertificate
from ._models import VaultSecretGroup
from ._models import VirtualHardDisk
Expand Down Expand Up @@ -349,6 +355,8 @@
from ._paged_models import ComputeOperationValuePaged
from ._paged_models import DedicatedHostGroupPaged
from ._paged_models import DedicatedHostPaged
from ._paged_models import GalleryApplicationPaged
from ._paged_models import GalleryApplicationVersionPaged
from ._paged_models import GalleryImagePaged
from ._paged_models import GalleryImageVersionPaged
from ._paged_models import GalleryPaged
Expand Down Expand Up @@ -393,9 +401,9 @@
RollingUpgradeStatusCode,
RollingUpgradeActionType,
IntervalInMins,
StorageAccountType,
AggregatedReplicationState,
ReplicationState,
StorageAccountType,
HostCaching,
InstanceViewTypes,
ReplicationStatusTypes,
Expand All @@ -419,7 +427,6 @@
'DedicatedHost',
'DedicatedHostAllocatableVM',
'DedicatedHostAvailableCapacity',
'DedicatedHostCapacity',
'DedicatedHostGroup',
'DedicatedHostGroupUpdate',
'DedicatedHostInstanceView',
Expand All @@ -430,6 +437,9 @@
'DiskEncryptionSettings',
'DiskInstanceView',
'Gallery',
'GalleryApplication',
'GalleryApplicationVersion',
'GalleryApplicationVersionPublishingProfile',
'GalleryArtifactPublishingProfileBase',
'GalleryArtifactSource',
'GalleryDataDiskImage',
Expand Down Expand Up @@ -502,6 +512,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactSource',
'VaultCertificate',
'VaultSecretGroup',
'VirtualHardDisk',
Expand Down Expand Up @@ -587,6 +598,8 @@
'GalleryPaged',
'GalleryImagePaged',
'GalleryImageVersionPaged',
'GalleryApplicationPaged',
'GalleryApplicationVersionPaged',
'HyperVGenerationTypes',
'StatusLevelTypes',
'AvailabilitySetSkuTypes',
Expand Down Expand Up @@ -616,9 +629,9 @@
'RollingUpgradeStatusCode',
'RollingUpgradeActionType',
'IntervalInMins',
'StorageAccountType',
'AggregatedReplicationState',
'ReplicationState',
'StorageAccountType',
'HostCaching',
'InstanceViewTypes',
'ReplicationStatusTypes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,6 @@ class IntervalInMins(str, Enum):
sixty_mins = "SixtyMins"


class StorageAccountType(str, Enum):

standard_lrs = "Standard_LRS"
standard_zrs = "Standard_ZRS"


class AggregatedReplicationState(str, Enum):

unknown = "Unknown"
Expand All @@ -387,6 +381,12 @@ class ReplicationState(str, Enum):
failed = "Failed"


class StorageAccountType(str, Enum):

standard_lrs = "Standard_LRS"
standard_zrs = "Standard_ZRS"


class HostCaching(str, Enum):

none = "None"
Expand Down
Loading