Skip to content

Commit

Permalink
T2 compute 2021 02 02 (#16486)
Browse files Browse the repository at this point in the history
* CodeGen from PR 12756 in Azure/azure-rest-api-specs
Add 2020-10-01-preview-only to python.md (#12756)

* add 2020-10-01-only to python.md

* fix

* test,version,CHANGELOG

* fix test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
  • Loading branch information
00Kai0 and SDKAuto authored Feb 3, 2021
1 parent 7d1aa3e commit f272d76
Show file tree
Hide file tree
Showing 63 changed files with 17,047 additions and 5,438 deletions.
9 changes: 9 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 18.2.0 (2021-02-02)

**Features**

- Added operation group CloudServicesUpdateDomainOperations
- Added operation group CloudServiceRolesOperations
- Added operation group CloudServiceRoleInstancesOperations
- Added operation group CloudServicesOperations

## 18.1.0 (2021-01-19)

**Features**
Expand Down
10 changes: 10 additions & 0 deletions sdk/compute/azure-mgmt-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ To learn how to use this package, see the [quickstart guide](https://aka.ms/azsd



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Compute Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
# Usage


To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Compute Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.compute.v2020_06_01.models>`
* 2020-06-30: :mod:`v2020_06_30.models<azure.mgmt.compute.v2020_06_30.models>`
* 2020-09-30: :mod:`v2020_09_30.models<azure.mgmt.compute.v2020_09_30.models>`
* 2020-10-01-preview: :mod:`v2020_10_01_preview.models<azure.mgmt.compute.v2020_10_01_preview.models>`
"""
if api_version == '2015-06-15':
from .v2015_06_15 import models
Expand Down Expand Up @@ -180,6 +181,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2020-09-30':
from .v2020_09_30 import models
return models
elif api_version == '2020-10-01-preview':
from .v2020_10_01_preview import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -228,6 +232,58 @@ def availability_sets(self):
raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_service_role_instances(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2020_10_01_preview.operations.CloudServiceRoleInstancesOperations>`
"""
api_version = self._get_api_version('cloud_service_role_instances')
if api_version == '2020-10-01-preview':
from .v2020_10_01_preview.operations import CloudServiceRoleInstancesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_role_instances'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_service_roles(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2020_10_01_preview.operations.CloudServiceRolesOperations>`
"""
api_version = self._get_api_version('cloud_service_roles')
if api_version == '2020-10-01-preview':
from .v2020_10_01_preview.operations import CloudServiceRolesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_roles'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_services(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServicesOperations<azure.mgmt.compute.v2020_10_01_preview.operations.CloudServicesOperations>`
"""
api_version = self._get_api_version('cloud_services')
if api_version == '2020-10-01-preview':
from .v2020_10_01_preview.operations import CloudServicesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_services_update_domain(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2020_10_01_preview.operations.CloudServicesUpdateDomainOperations>`
"""
api_version = self._get_api_version('cloud_services_update_domain')
if api_version == '2020-10-01-preview':
from .v2020_10_01_preview.operations import CloudServicesUpdateDomainOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "18.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.compute.v2020_06_01.models>`
* 2020-06-30: :mod:`v2020_06_30.models<azure.mgmt.compute.v2020_06_30.models>`
* 2020-09-30: :mod:`v2020_09_30.models<azure.mgmt.compute.v2020_09_30.models>`
* 2020-10-01-preview: :mod:`v2020_10_01_preview.models<azure.mgmt.compute.v2020_10_01_preview.models>`
"""
if api_version == '2015-06-15':
from ..v2015_06_15 import models
Expand Down Expand Up @@ -180,6 +181,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2020-09-30':
from ..v2020_09_30 import models
return models
elif api_version == '2020-10-01-preview':
from ..v2020_10_01_preview import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -228,6 +232,58 @@ def availability_sets(self):
raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_service_role_instances(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2020_10_01_preview.aio.operations.CloudServiceRoleInstancesOperations>`
"""
api_version = self._get_api_version('cloud_service_role_instances')
if api_version == '2020-10-01-preview':
from ..v2020_10_01_preview.aio.operations import CloudServiceRoleInstancesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_role_instances'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_service_roles(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2020_10_01_preview.aio.operations.CloudServiceRolesOperations>`
"""
api_version = self._get_api_version('cloud_service_roles')
if api_version == '2020-10-01-preview':
from ..v2020_10_01_preview.aio.operations import CloudServiceRolesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_roles'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_services(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServicesOperations<azure.mgmt.compute.v2020_10_01_preview.aio.operations.CloudServicesOperations>`
"""
api_version = self._get_api_version('cloud_services')
if api_version == '2020-10-01-preview':
from ..v2020_10_01_preview.aio.operations import CloudServicesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def cloud_services_update_domain(self):
"""Instance depends on the API version:
* 2020-10-01-preview: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2020_10_01_preview.aio.operations.CloudServicesUpdateDomainOperations>`
"""
api_version = self._get_api_version('cloud_services_update_domain')
if api_version == '2020-10-01-preview':
from ..v2020_10_01_preview.aio.operations import CloudServicesUpdateDomainOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
from ._models_py3 import UpgradePolicy
from ._models_py3 import Usage
from ._models_py3 import UsageName
from ._models_py3 import UserArtifactManage
from ._models_py3 import UserArtifactSource
from ._models_py3 import UserAssignedIdentitiesValue
from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput
Expand Down Expand Up @@ -358,6 +359,7 @@
from ._models import UpgradePolicy # type: ignore
from ._models import Usage # type: ignore
from ._models import UsageName # type: ignore
from ._models import UserArtifactManage # type: ignore
from ._models import UserArtifactSource # type: ignore
from ._models import UserAssignedIdentitiesValue # type: ignore
from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore
Expand Down Expand Up @@ -619,6 +621,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactManage',
'UserArtifactSource',
'UserAssignedIdentitiesValue',
'VMScaleSetConvertToSinglePlacementGroupInput',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En
SPECIALIZED = "Specialized" #: Specialized image. Contains already provisioned OS Disk.

class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The operating system of the osDiskImage.
"""This property allows you to specify the supported type of the OS that application is built for.
:code:`<br>`:code:`<br>` Possible values are: :code:`<br>`:code:`<br>` **Windows**
:code:`<br>`:code:`<br>` **Linux**
"""

WINDOWS = "Windows"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ class GalleryApplicationVersion(Resource):
:type location: str
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param publishing_profile: The publishing profile of a gallery Image Version.
:param publishing_profile: The publishing profile of a gallery image version.
:type publishing_profile:
~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersionPublishingProfile
:ivar provisioning_state: The provisioning state, which only appears in the response. Possible
Expand Down Expand Up @@ -1913,7 +1913,7 @@ def __init__(


class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase):
"""The publishing profile of a gallery Image Version.
"""The publishing profile of a gallery image version.
Variables are only populated by the server, and will be ignored when sending a request.
Expand All @@ -1939,9 +1939,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil
:type storage_account_type: str or ~azure.mgmt.compute.v2019_03_01.models.StorageAccountType
:param source: Required. The source image from which the Image Version is going to be created.
:type source: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactSource
:param content_type: Optional. May be used to help process this file. The type of file
contained in the source, e.g. zip, json, etc.
:type content_type: str
:param manage_actions:
:type manage_actions: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactManage
:param enable_health_check: Optional. Whether or not this application reports health.
:type enable_health_check: bool
"""
Expand All @@ -1959,7 +1958,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil
'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'},
'storage_account_type': {'key': 'storageAccountType', 'type': 'str'},
'source': {'key': 'source', 'type': 'UserArtifactSource'},
'content_type': {'key': 'contentType', 'type': 'str'},
'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'},
'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'},
}

Expand All @@ -1969,7 +1968,7 @@ def __init__(
):
super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs)
self.source = kwargs['source']
self.content_type = kwargs.get('content_type', None)
self.manage_actions = kwargs.get('manage_actions', None)
self.enable_health_check = kwargs.get('enable_health_check', None)


Expand Down Expand Up @@ -5278,35 +5277,73 @@ def __init__(
self.localized_value = kwargs.get('localized_value', None)


class UserArtifactManage(msrest.serialization.Model):
"""UserArtifactManage.
All required parameters must be populated in order to send to Azure.
:param install: Required. Required. The path and arguments to install the gallery application.
This is limited to 4096 characters.
:type install: str
:param remove: Required. Required. The path and arguments to remove the gallery application.
This is limited to 4096 characters.
:type remove: str
:param update: Optional. The path and arguments to update the gallery application. If not
present, then update operation will invoke remove command on the previous version and install
command on the current version of the gallery application. This is limited to 4096 characters.
:type update: str
"""

_validation = {
'install': {'required': True},
'remove': {'required': True},
}

_attribute_map = {
'install': {'key': 'install', 'type': 'str'},
'remove': {'key': 'remove', 'type': 'str'},
'update': {'key': 'update', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(UserArtifactManage, self).__init__(**kwargs)
self.install = kwargs['install']
self.remove = kwargs['remove']
self.update = kwargs.get('update', None)


class UserArtifactSource(msrest.serialization.Model):
"""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.
:param file_name: Required. Required. The fileName of the artifact.
:type file_name: str
:param media_link: Required. Required. The mediaLink of the artifact, must be a readable
storage blob.
storage page blob.
:type media_link: str
:param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must
be a readable storage page blob.
:type default_configuration_link: str
"""

_validation = {
'file_name': {'required': True},
'media_link': {'required': True},
}

_attribute_map = {
'file_name': {'key': 'fileName', 'type': 'str'},
'media_link': {'key': 'mediaLink', 'type': 'str'},
'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(UserArtifactSource, self).__init__(**kwargs)
self.file_name = kwargs['file_name']
self.media_link = kwargs['media_link']
self.default_configuration_link = kwargs.get('default_configuration_link', None)


class UserAssignedIdentitiesValue(msrest.serialization.Model):
Expand Down
Loading

0 comments on commit f272d76

Please sign in to comment.