diff --git a/sdk/automation/azure-mgmt-automation/azure-mgmt-automation-0.1.1.zip b/sdk/automation/azure-mgmt-automation/azure-mgmt-automation-0.1.1.zip new file mode 100644 index 000000000000..d3c052b3bb7b Binary files /dev/null and b/sdk/automation/azure-mgmt-automation/azure-mgmt-automation-0.1.1.zip differ diff --git a/sdk/automation/azure-mgmt-automation/azure_mgmt_automation-0.1.1-py2.py3-none-any.whl b/sdk/automation/azure-mgmt-automation/azure_mgmt_automation-0.1.1-py2.py3-none-any.whl new file mode 100644 index 000000000000..4d870b024f37 Binary files /dev/null and b/sdk/automation/azure-mgmt-automation/azure_mgmt_automation-0.1.1-py2.py3-none-any.whl differ diff --git a/sdk/cdn/azure-mgmt-cdn/azure-mgmt-cdn-3.1.0.zip b/sdk/cdn/azure-mgmt-cdn/azure-mgmt-cdn-3.1.0.zip new file mode 100644 index 000000000000..c432bceae62d Binary files /dev/null and b/sdk/cdn/azure-mgmt-cdn/azure-mgmt-cdn-3.1.0.zip differ diff --git a/sdk/cdn/azure-mgmt-cdn/azure_mgmt_cdn-3.1.0-py2.py3-none-any.whl b/sdk/cdn/azure-mgmt-cdn/azure_mgmt_cdn-3.1.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..21a9c8fe37a3 Binary files /dev/null and b/sdk/cdn/azure-mgmt-cdn/azure_mgmt_cdn-3.1.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure-cognitiveservices-formrecognizer-0.1.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure-cognitiveservices-formrecognizer-0.1.0.zip new file mode 100644 index 000000000000..6ef5acfb70c6 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure-cognitiveservices-formrecognizer-0.1.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure_cognitiveservices_formrecognizer-0.1.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure_cognitiveservices_formrecognizer-0.1.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..587322136a3c Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure_cognitiveservices_formrecognizer-0.1.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure-cognitiveservices-knowledge-qnamaker-0.1.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure-cognitiveservices-knowledge-qnamaker-0.1.0.zip new file mode 100644 index 000000000000..9edbad41fc9d Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure-cognitiveservices-knowledge-qnamaker-0.1.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure_cognitiveservices_knowledge_qnamaker-0.1.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure_cognitiveservices_knowledge_qnamaker-0.1.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..ef806a982c2f Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure_cognitiveservices_knowledge_qnamaker-0.1.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure-cognitiveservices-language-luis-0.4.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure-cognitiveservices-language-luis-0.4.0.zip new file mode 100644 index 000000000000..e4335c0dc988 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure-cognitiveservices-language-luis-0.4.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure_cognitiveservices_language_luis-0.4.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure_cognitiveservices_language_luis-0.4.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..05d6c26ebe85 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-language-luis/azure_cognitiveservices_language_luis-0.4.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure-cognitiveservices-personalizer-0.1.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure-cognitiveservices-personalizer-0.1.0.zip new file mode 100644 index 000000000000..616bec437756 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure-cognitiveservices-personalizer-0.1.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure_cognitiveservices_personalizer-0.1.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure_cognitiveservices_personalizer-0.1.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..c36d3388c135 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure_cognitiveservices_personalizer-0.1.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure-cognitiveservices-search-autosuggest-0.1.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure-cognitiveservices-search-autosuggest-0.1.0.zip new file mode 100644 index 000000000000..5c19838babe2 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure-cognitiveservices-search-autosuggest-0.1.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure_cognitiveservices_search_autosuggest-0.1.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure_cognitiveservices_search_autosuggest-0.1.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..3f2d4d5303fd Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure_cognitiveservices_search_autosuggest-0.1.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure-cognitiveservices-search-visualsearch-0.2.0.zip b/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure-cognitiveservices-search-visualsearch-0.2.0.zip new file mode 100644 index 000000000000..986121c8701e Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure-cognitiveservices-search-visualsearch-0.2.0.zip differ diff --git a/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure_cognitiveservices_search_visualsearch-0.2.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure_cognitiveservices_search_visualsearch-0.2.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..4c4498d50300 Binary files /dev/null and b/sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/azure_cognitiveservices_search_visualsearch-0.2.0-py2.py3-none-any.whl differ diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure-mgmt-cognitiveservices-5.0.0.zip b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure-mgmt-cognitiveservices-5.0.0.zip new file mode 100644 index 000000000000..8bfd1014ad76 Binary files /dev/null and b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure-mgmt-cognitiveservices-5.0.0.zip differ diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure_mgmt_cognitiveservices-5.0.0-py2.py3-none-any.whl b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure_mgmt_cognitiveservices-5.0.0-py2.py3-none-any.whl new file mode 100644 index 000000000000..e4989a33c2f6 Binary files /dev/null and b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure_mgmt_cognitiveservices-5.0.0-py2.py3-none-any.whl differ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py index ca77cf2626bc..f101f605823d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py @@ -132,38 +132,38 @@ def models(cls, api_version=DEFAULT_API_VERSION): def availability_sets(self): """Instance depends on the API version: - * 2015-06-15: :class:`AvailabilitySetsOperations` - * 2016-03-30: :class:`AvailabilitySetsOperations` + * 2019-07-01: :class:`AvailabilitySetsOperations` + * 2018-06-01: :class:`AvailabilitySetsOperations` + * 2019-03-01: :class:`AvailabilitySetsOperations` + * 2017-12-01: :class:`AvailabilitySetsOperations` * 2016-04-30-preview: :class:`AvailabilitySetsOperations` + * 2016-03-30: :class:`AvailabilitySetsOperations` + * 2015-06-15: :class:`AvailabilitySetsOperations` + * 2018-10-01: :class:`AvailabilitySetsOperations` * 2017-03-30: :class:`AvailabilitySetsOperations` - * 2017-12-01: :class:`AvailabilitySetsOperations` * 2018-04-01: :class:`AvailabilitySetsOperations` - * 2018-06-01: :class:`AvailabilitySetsOperations` - * 2018-10-01: :class:`AvailabilitySetsOperations` - * 2019-03-01: :class:`AvailabilitySetsOperations` - * 2019-07-01: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') - if api_version == '2015-06-15': - from .v2015_06_15.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import AvailabilitySetsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import AvailabilitySetsOperations 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))) @@ -172,14 +172,14 @@ def availability_sets(self): def dedicated_host_groups(self): """Instance depends on the API version: - * 2019-03-01: :class:`DedicatedHostGroupsOperations` * 2019-07-01: :class:`DedicatedHostGroupsOperations` + * 2019-03-01: :class:`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 - elif api_version == '2019-07-01': + if api_version == '2019-07-01': from .v2019_07_01.operations import DedicatedHostGroupsOperations as OperationClass + elif 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))) @@ -188,14 +188,14 @@ def dedicated_host_groups(self): def dedicated_hosts(self): """Instance depends on the API version: - * 2019-03-01: :class:`DedicatedHostsOperations` * 2019-07-01: :class:`DedicatedHostsOperations` + * 2019-03-01: :class:`DedicatedHostsOperations` """ api_version = self._get_api_version('dedicated_hosts') - if api_version == '2019-03-01': - from .v2019_03_01.operations import DedicatedHostsOperations as OperationClass - elif api_version == '2019-07-01': + if api_version == '2019-07-01': from .v2019_07_01.operations import DedicatedHostsOperations as OperationClass + elif 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))) @@ -217,29 +217,29 @@ def disk_encryption_sets(self): def disks(self): """Instance depends on the API version: - * 2016-04-30-preview: :class:`DisksOperations` - * 2017-03-30: :class:`DisksOperations` - * 2018-04-01: :class:`DisksOperations` + * 2019-07-01: :class:`DisksOperations` * 2018-06-01: :class:`DisksOperations` * 2018-09-30: :class:`DisksOperations` * 2019-03-01: :class:`DisksOperations` - * 2019-07-01: :class:`DisksOperations` + * 2016-04-30-preview: :class:`DisksOperations` + * 2017-03-30: :class:`DisksOperations` + * 2018-04-01: :class:`DisksOperations` """ api_version = self._get_api_version('disks') - if api_version == '2016-04-30-preview': - from .v2016_04_30_preview.operations import DisksOperations as OperationClass - elif api_version == '2017-03-30': - from .v2017_03_30.operations import DisksOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import DisksOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import DisksOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import DisksOperations as OperationClass elif api_version == '2018-09-30': from .v2018_09_30.operations import DisksOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import DisksOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import DisksOperations as OperationClass + elif api_version == '2016-04-30-preview': + from .v2016_04_30_preview.operations import DisksOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import DisksOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import DisksOperations 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))) @@ -248,17 +248,17 @@ def disks(self): def galleries(self): """Instance depends on the API version: + * 2019-07-01: :class:`GalleriesOperations` * 2018-06-01: :class:`GalleriesOperations` * 2019-03-01: :class:`GalleriesOperations` - * 2019-07-01: :class:`GalleriesOperations` """ api_version = self._get_api_version('galleries') - if api_version == '2018-06-01': + if api_version == '2019-07-01': + from .v2019_07_01.operations import GalleriesOperations as OperationClass + elif api_version == '2018-06-01': from .v2018_06_01.operations import GalleriesOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import GalleriesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import GalleriesOperations 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))) @@ -267,14 +267,14 @@ def galleries(self): def gallery_application_versions(self): """Instance depends on the API version: - * 2019-03-01: :class:`GalleryApplicationVersionsOperations` * 2019-07-01: :class:`GalleryApplicationVersionsOperations` + * 2019-03-01: :class:`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 - elif api_version == '2019-07-01': + if api_version == '2019-07-01': from .v2019_07_01.operations import GalleryApplicationVersionsOperations as OperationClass + elif 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))) @@ -283,14 +283,14 @@ def gallery_application_versions(self): def gallery_applications(self): """Instance depends on the API version: - * 2019-03-01: :class:`GalleryApplicationsOperations` * 2019-07-01: :class:`GalleryApplicationsOperations` + * 2019-03-01: :class:`GalleryApplicationsOperations` """ api_version = self._get_api_version('gallery_applications') - if api_version == '2019-03-01': - from .v2019_03_01.operations import GalleryApplicationsOperations as OperationClass - elif api_version == '2019-07-01': + if api_version == '2019-07-01': from .v2019_07_01.operations import GalleryApplicationsOperations as OperationClass + elif 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))) @@ -299,17 +299,17 @@ def gallery_applications(self): def gallery_image_versions(self): """Instance depends on the API version: + * 2019-07-01: :class:`GalleryImageVersionsOperations` * 2018-06-01: :class:`GalleryImageVersionsOperations` * 2019-03-01: :class:`GalleryImageVersionsOperations` - * 2019-07-01: :class:`GalleryImageVersionsOperations` """ api_version = self._get_api_version('gallery_image_versions') - if api_version == '2018-06-01': + if api_version == '2019-07-01': + from .v2019_07_01.operations import GalleryImageVersionsOperations as OperationClass + elif api_version == '2018-06-01': from .v2018_06_01.operations import GalleryImageVersionsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import GalleryImageVersionsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import GalleryImageVersionsOperations 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))) @@ -318,17 +318,17 @@ def gallery_image_versions(self): def gallery_images(self): """Instance depends on the API version: + * 2019-07-01: :class:`GalleryImagesOperations` * 2018-06-01: :class:`GalleryImagesOperations` * 2019-03-01: :class:`GalleryImagesOperations` - * 2019-07-01: :class:`GalleryImagesOperations` """ api_version = self._get_api_version('gallery_images') - if api_version == '2018-06-01': + if api_version == '2019-07-01': + from .v2019_07_01.operations import GalleryImagesOperations as OperationClass + elif api_version == '2018-06-01': from .v2018_06_01.operations import GalleryImagesOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import GalleryImagesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import GalleryImagesOperations 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))) @@ -337,32 +337,32 @@ def gallery_images(self): def images(self): """Instance depends on the API version: + * 2019-07-01: :class:`ImagesOperations` + * 2018-06-01: :class:`ImagesOperations` + * 2019-03-01: :class:`ImagesOperations` + * 2017-12-01: :class:`ImagesOperations` * 2016-04-30-preview: :class:`ImagesOperations` + * 2018-10-01: :class:`ImagesOperations` * 2017-03-30: :class:`ImagesOperations` - * 2017-12-01: :class:`ImagesOperations` * 2018-04-01: :class:`ImagesOperations` - * 2018-06-01: :class:`ImagesOperations` - * 2018-10-01: :class:`ImagesOperations` - * 2019-03-01: :class:`ImagesOperations` - * 2019-07-01: :class:`ImagesOperations` """ api_version = self._get_api_version('images') - if api_version == '2016-04-30-preview': + if api_version == '2019-07-01': + from .v2019_07_01.operations import ImagesOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import ImagesOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import ImagesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import ImagesOperations as OperationClass + elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import ImagesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import ImagesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import ImagesOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import ImagesOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import ImagesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import ImagesOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import ImagesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import ImagesOperations 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))) @@ -371,26 +371,26 @@ def images(self): def log_analytics(self): """Instance depends on the API version: - * 2017-12-01: :class:`LogAnalyticsOperations` - * 2018-04-01: :class:`LogAnalyticsOperations` + * 2019-07-01: :class:`LogAnalyticsOperations` * 2018-06-01: :class:`LogAnalyticsOperations` - * 2018-10-01: :class:`LogAnalyticsOperations` * 2019-03-01: :class:`LogAnalyticsOperations` - * 2019-07-01: :class:`LogAnalyticsOperations` + * 2017-12-01: :class:`LogAnalyticsOperations` + * 2018-10-01: :class:`LogAnalyticsOperations` + * 2018-04-01: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') - if api_version == '2017-12-01': - from .v2017_12_01.operations import LogAnalyticsOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import LogAnalyticsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import LogAnalyticsOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import LogAnalyticsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import LogAnalyticsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import LogAnalyticsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import LogAnalyticsOperations 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))) @@ -399,26 +399,26 @@ def log_analytics(self): def operations(self): """Instance depends on the API version: - * 2017-12-01: :class:`Operations` - * 2018-04-01: :class:`Operations` + * 2019-07-01: :class:`Operations` * 2018-06-01: :class:`Operations` - * 2018-10-01: :class:`Operations` * 2019-03-01: :class:`Operations` - * 2019-07-01: :class:`Operations` + * 2017-12-01: :class:`Operations` + * 2018-10-01: :class:`Operations` + * 2018-04-01: :class:`Operations` """ api_version = self._get_api_version('operations') - if api_version == '2017-12-01': - from .v2017_12_01.operations import Operations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import Operations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import Operations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import Operations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import Operations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import Operations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import Operations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import Operations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import Operations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import Operations 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))) @@ -427,23 +427,23 @@ def operations(self): def proximity_placement_groups(self): """Instance depends on the API version: - * 2018-04-01: :class:`ProximityPlacementGroupsOperations` + * 2019-07-01: :class:`ProximityPlacementGroupsOperations` * 2018-06-01: :class:`ProximityPlacementGroupsOperations` - * 2018-10-01: :class:`ProximityPlacementGroupsOperations` * 2019-03-01: :class:`ProximityPlacementGroupsOperations` - * 2019-07-01: :class:`ProximityPlacementGroupsOperations` + * 2018-10-01: :class:`ProximityPlacementGroupsOperations` + * 2018-04-01: :class:`ProximityPlacementGroupsOperations` """ api_version = self._get_api_version('proximity_placement_groups') - if api_version == '2018-04-01': - from .v2018_04_01.operations import ProximityPlacementGroupsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import ProximityPlacementGroupsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import ProximityPlacementGroupsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import ProximityPlacementGroupsOperations 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))) @@ -452,17 +452,17 @@ def proximity_placement_groups(self): def resource_skus(self): """Instance depends on the API version: - * 2017-03-30: :class:`ResourceSkusOperations` - * 2017-09-01: :class:`ResourceSkusOperations` * 2019-04-01: :class:`ResourceSkusOperations` + * 2017-09-01: :class:`ResourceSkusOperations` + * 2017-03-30: :class:`ResourceSkusOperations` """ api_version = self._get_api_version('resource_skus') - if api_version == '2017-03-30': - from .v2017_03_30.operations import ResourceSkusOperations as OperationClass + if api_version == '2019-04-01': + from .v2019_04_01.operations import ResourceSkusOperations as OperationClass elif api_version == '2017-09-01': from .v2017_09_01.operations import ResourceSkusOperations as OperationClass - elif api_version == '2019-04-01': - from .v2019_04_01.operations import ResourceSkusOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import ResourceSkusOperations 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))) @@ -471,29 +471,29 @@ def resource_skus(self): def snapshots(self): """Instance depends on the API version: - * 2016-04-30-preview: :class:`SnapshotsOperations` - * 2017-03-30: :class:`SnapshotsOperations` - * 2018-04-01: :class:`SnapshotsOperations` + * 2019-07-01: :class:`SnapshotsOperations` * 2018-06-01: :class:`SnapshotsOperations` * 2018-09-30: :class:`SnapshotsOperations` * 2019-03-01: :class:`SnapshotsOperations` - * 2019-07-01: :class:`SnapshotsOperations` + * 2016-04-30-preview: :class:`SnapshotsOperations` + * 2017-03-30: :class:`SnapshotsOperations` + * 2018-04-01: :class:`SnapshotsOperations` """ api_version = self._get_api_version('snapshots') - if api_version == '2016-04-30-preview': - from .v2016_04_30_preview.operations import SnapshotsOperations as OperationClass - elif api_version == '2017-03-30': - from .v2017_03_30.operations import SnapshotsOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import SnapshotsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import SnapshotsOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import SnapshotsOperations as OperationClass elif api_version == '2018-09-30': from .v2018_09_30.operations import SnapshotsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import SnapshotsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import SnapshotsOperations as OperationClass + elif api_version == '2016-04-30-preview': + from .v2016_04_30_preview.operations import SnapshotsOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import SnapshotsOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import SnapshotsOperations 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))) @@ -502,38 +502,38 @@ def snapshots(self): def usage(self): """Instance depends on the API version: - * 2015-06-15: :class:`UsageOperations` - * 2016-03-30: :class:`UsageOperations` + * 2019-07-01: :class:`UsageOperations` + * 2018-06-01: :class:`UsageOperations` + * 2019-03-01: :class:`UsageOperations` + * 2017-12-01: :class:`UsageOperations` * 2016-04-30-preview: :class:`UsageOperations` + * 2016-03-30: :class:`UsageOperations` + * 2015-06-15: :class:`UsageOperations` + * 2018-10-01: :class:`UsageOperations` * 2017-03-30: :class:`UsageOperations` - * 2017-12-01: :class:`UsageOperations` * 2018-04-01: :class:`UsageOperations` - * 2018-06-01: :class:`UsageOperations` - * 2018-10-01: :class:`UsageOperations` - * 2019-03-01: :class:`UsageOperations` - * 2019-07-01: :class:`UsageOperations` """ api_version = self._get_api_version('usage') - if api_version == '2015-06-15': - from .v2015_06_15.operations import UsageOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import UsageOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import UsageOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import UsageOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import UsageOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import UsageOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import UsageOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import UsageOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import UsageOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import UsageOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import UsageOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import UsageOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import UsageOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import UsageOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import UsageOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import UsageOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import UsageOperations 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))) @@ -542,38 +542,38 @@ def usage(self): def virtual_machine_extension_images(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineExtensionImagesOperations` - * 2016-03-30: :class:`VirtualMachineExtensionImagesOperations` + * 2019-07-01: :class:`VirtualMachineExtensionImagesOperations` + * 2018-06-01: :class:`VirtualMachineExtensionImagesOperations` + * 2019-03-01: :class:`VirtualMachineExtensionImagesOperations` + * 2017-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2016-04-30-preview: :class:`VirtualMachineExtensionImagesOperations` + * 2016-03-30: :class:`VirtualMachineExtensionImagesOperations` + * 2015-06-15: :class:`VirtualMachineExtensionImagesOperations` + * 2018-10-01: :class:`VirtualMachineExtensionImagesOperations` * 2017-03-30: :class:`VirtualMachineExtensionImagesOperations` - * 2017-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2018-04-01: :class:`VirtualMachineExtensionImagesOperations` - * 2018-06-01: :class:`VirtualMachineExtensionImagesOperations` - * 2018-10-01: :class:`VirtualMachineExtensionImagesOperations` - * 2019-03-01: :class:`VirtualMachineExtensionImagesOperations` - * 2019-07-01: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineExtensionImagesOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineExtensionImagesOperations 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))) @@ -582,38 +582,38 @@ def virtual_machine_extension_images(self): def virtual_machine_extensions(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineExtensionsOperations` - * 2016-03-30: :class:`VirtualMachineExtensionsOperations` + * 2019-07-01: :class:`VirtualMachineExtensionsOperations` + * 2018-06-01: :class:`VirtualMachineExtensionsOperations` + * 2019-03-01: :class:`VirtualMachineExtensionsOperations` + * 2017-12-01: :class:`VirtualMachineExtensionsOperations` * 2016-04-30-preview: :class:`VirtualMachineExtensionsOperations` + * 2016-03-30: :class:`VirtualMachineExtensionsOperations` + * 2015-06-15: :class:`VirtualMachineExtensionsOperations` + * 2018-10-01: :class:`VirtualMachineExtensionsOperations` * 2017-03-30: :class:`VirtualMachineExtensionsOperations` - * 2017-12-01: :class:`VirtualMachineExtensionsOperations` * 2018-04-01: :class:`VirtualMachineExtensionsOperations` - * 2018-06-01: :class:`VirtualMachineExtensionsOperations` - * 2018-10-01: :class:`VirtualMachineExtensionsOperations` - * 2019-03-01: :class:`VirtualMachineExtensionsOperations` - * 2019-07-01: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineExtensionsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineExtensionsOperations 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))) @@ -622,38 +622,38 @@ def virtual_machine_extensions(self): def virtual_machine_images(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineImagesOperations` - * 2016-03-30: :class:`VirtualMachineImagesOperations` + * 2019-07-01: :class:`VirtualMachineImagesOperations` + * 2018-06-01: :class:`VirtualMachineImagesOperations` + * 2019-03-01: :class:`VirtualMachineImagesOperations` + * 2017-12-01: :class:`VirtualMachineImagesOperations` * 2016-04-30-preview: :class:`VirtualMachineImagesOperations` + * 2016-03-30: :class:`VirtualMachineImagesOperations` + * 2015-06-15: :class:`VirtualMachineImagesOperations` + * 2018-10-01: :class:`VirtualMachineImagesOperations` * 2017-03-30: :class:`VirtualMachineImagesOperations` - * 2017-12-01: :class:`VirtualMachineImagesOperations` * 2018-04-01: :class:`VirtualMachineImagesOperations` - * 2018-06-01: :class:`VirtualMachineImagesOperations` - * 2018-10-01: :class:`VirtualMachineImagesOperations` - * 2019-03-01: :class:`VirtualMachineImagesOperations` - * 2019-07-01: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineImagesOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineImagesOperations 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))) @@ -662,29 +662,29 @@ def virtual_machine_images(self): def virtual_machine_run_commands(self): """Instance depends on the API version: - * 2017-03-30: :class:`VirtualMachineRunCommandsOperations` - * 2017-12-01: :class:`VirtualMachineRunCommandsOperations` - * 2018-04-01: :class:`VirtualMachineRunCommandsOperations` + * 2019-07-01: :class:`VirtualMachineRunCommandsOperations` * 2018-06-01: :class:`VirtualMachineRunCommandsOperations` - * 2018-10-01: :class:`VirtualMachineRunCommandsOperations` * 2019-03-01: :class:`VirtualMachineRunCommandsOperations` - * 2019-07-01: :class:`VirtualMachineRunCommandsOperations` + * 2017-12-01: :class:`VirtualMachineRunCommandsOperations` + * 2018-10-01: :class:`VirtualMachineRunCommandsOperations` + * 2017-03-30: :class:`VirtualMachineRunCommandsOperations` + * 2018-04-01: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') - if api_version == '2017-03-30': - from .v2017_03_30.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import VirtualMachineRunCommandsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import VirtualMachineRunCommandsOperations 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))) @@ -693,29 +693,29 @@ def virtual_machine_run_commands(self): def virtual_machine_scale_set_extensions(self): """Instance depends on the API version: - * 2017-03-30: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2018-04-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2019-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2018-06-01: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2018-10-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2019-03-01: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2019-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2017-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2018-10-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2017-03-30: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2018-04-01: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') - if api_version == '2017-03-30': - from .v2017_03_30.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import VirtualMachineScaleSetExtensionsOperations 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))) @@ -724,29 +724,29 @@ def virtual_machine_scale_set_extensions(self): def virtual_machine_scale_set_rolling_upgrades(self): """Instance depends on the API version: - * 2017-03-30: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2018-04-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2019-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2018-06-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2018-10-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2019-03-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2019-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2017-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2018-10-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2017-03-30: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2018-04-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') - if api_version == '2017-03-30': - from .v2017_03_30.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2018-04-01': - from .v2018_04_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2018-06-01': from .v2018_06_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2019-03-01': from .v2019_03_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2017-03-30': + from .v2017_03_30.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2018-04-01': + from .v2018_04_01.operations import VirtualMachineScaleSetRollingUpgradesOperations 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))) @@ -768,38 +768,38 @@ def virtual_machine_scale_set_vm_extensions(self): def virtual_machine_scale_set_vms(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineScaleSetVMsOperations` - * 2016-03-30: :class:`VirtualMachineScaleSetVMsOperations` + * 2019-07-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2018-06-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2019-03-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2017-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2016-04-30-preview: :class:`VirtualMachineScaleSetVMsOperations` + * 2016-03-30: :class:`VirtualMachineScaleSetVMsOperations` + * 2015-06-15: :class:`VirtualMachineScaleSetVMsOperations` + * 2018-10-01: :class:`VirtualMachineScaleSetVMsOperations` * 2017-03-30: :class:`VirtualMachineScaleSetVMsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2018-04-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2018-06-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2018-10-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2019-03-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2019-07-01: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineScaleSetVMsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineScaleSetVMsOperations 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))) @@ -808,38 +808,38 @@ def virtual_machine_scale_set_vms(self): def virtual_machine_scale_sets(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineScaleSetsOperations` - * 2016-03-30: :class:`VirtualMachineScaleSetsOperations` + * 2019-07-01: :class:`VirtualMachineScaleSetsOperations` + * 2018-06-01: :class:`VirtualMachineScaleSetsOperations` + * 2019-03-01: :class:`VirtualMachineScaleSetsOperations` + * 2017-12-01: :class:`VirtualMachineScaleSetsOperations` * 2016-04-30-preview: :class:`VirtualMachineScaleSetsOperations` + * 2016-03-30: :class:`VirtualMachineScaleSetsOperations` + * 2015-06-15: :class:`VirtualMachineScaleSetsOperations` + * 2018-10-01: :class:`VirtualMachineScaleSetsOperations` * 2017-03-30: :class:`VirtualMachineScaleSetsOperations` - * 2017-12-01: :class:`VirtualMachineScaleSetsOperations` * 2018-04-01: :class:`VirtualMachineScaleSetsOperations` - * 2018-06-01: :class:`VirtualMachineScaleSetsOperations` - * 2018-10-01: :class:`VirtualMachineScaleSetsOperations` - * 2019-03-01: :class:`VirtualMachineScaleSetsOperations` - * 2019-07-01: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineScaleSetsOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineScaleSetsOperations 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))) @@ -848,38 +848,38 @@ def virtual_machine_scale_sets(self): def virtual_machine_sizes(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachineSizesOperations` - * 2016-03-30: :class:`VirtualMachineSizesOperations` + * 2019-07-01: :class:`VirtualMachineSizesOperations` + * 2018-06-01: :class:`VirtualMachineSizesOperations` + * 2019-03-01: :class:`VirtualMachineSizesOperations` + * 2017-12-01: :class:`VirtualMachineSizesOperations` * 2016-04-30-preview: :class:`VirtualMachineSizesOperations` + * 2016-03-30: :class:`VirtualMachineSizesOperations` + * 2015-06-15: :class:`VirtualMachineSizesOperations` + * 2018-10-01: :class:`VirtualMachineSizesOperations` * 2017-03-30: :class:`VirtualMachineSizesOperations` - * 2017-12-01: :class:`VirtualMachineSizesOperations` * 2018-04-01: :class:`VirtualMachineSizesOperations` - * 2018-06-01: :class:`VirtualMachineSizesOperations` - * 2018-10-01: :class:`VirtualMachineSizesOperations` - * 2019-03-01: :class:`VirtualMachineSizesOperations` - * 2019-07-01: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachineSizesOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachineSizesOperations 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))) @@ -888,38 +888,38 @@ def virtual_machine_sizes(self): def virtual_machines(self): """Instance depends on the API version: - * 2015-06-15: :class:`VirtualMachinesOperations` - * 2016-03-30: :class:`VirtualMachinesOperations` + * 2019-07-01: :class:`VirtualMachinesOperations` + * 2018-06-01: :class:`VirtualMachinesOperations` + * 2019-03-01: :class:`VirtualMachinesOperations` + * 2017-12-01: :class:`VirtualMachinesOperations` * 2016-04-30-preview: :class:`VirtualMachinesOperations` + * 2016-03-30: :class:`VirtualMachinesOperations` + * 2015-06-15: :class:`VirtualMachinesOperations` + * 2018-10-01: :class:`VirtualMachinesOperations` * 2017-03-30: :class:`VirtualMachinesOperations` - * 2017-12-01: :class:`VirtualMachinesOperations` * 2018-04-01: :class:`VirtualMachinesOperations` - * 2018-06-01: :class:`VirtualMachinesOperations` - * 2018-10-01: :class:`VirtualMachinesOperations` - * 2019-03-01: :class:`VirtualMachinesOperations` - * 2019-07-01: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') - if api_version == '2015-06-15': - from .v2015_06_15.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2016-03-30': - from .v2016_03_30.operations import VirtualMachinesOperations as OperationClass + if api_version == '2019-07-01': + from .v2019_07_01.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2018-06-01': + from .v2018_06_01.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2019-03-01': + from .v2019_03_01.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2017-12-01': + from .v2017_12_01.operations import VirtualMachinesOperations as OperationClass elif api_version == '2016-04-30-preview': from .v2016_04_30_preview.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2016-03-30': + from .v2016_03_30.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2015-06-15': + from .v2015_06_15.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualMachinesOperations as OperationClass elif api_version == '2017-03-30': from .v2017_03_30.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2017-12-01': - from .v2017_12_01.operations import VirtualMachinesOperations as OperationClass elif api_version == '2018-04-01': from .v2018_04_01.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2018-06-01': - from .v2018_06_01.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2018-10-01': - from .v2018_10_01.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2019-03-01': - from .v2019_03_01.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2019-07-01': - from .v2019_07_01.operations import VirtualMachinesOperations 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))) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py index 86bae678606b..cad85bece85a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py @@ -320,8 +320,8 @@ class VirtualMachineScaleSetScaleInRules(str, Enum): class OperatingSystemStateTypes(str, Enum): - generalized = "Generalized" - specialized = "Specialized" + generalized = "Generalized" #: Generalized image. Needs to be provisioned during deployment time. + specialized = "Specialized" #: Specialized image. Contains already provisioned OS Disk. class IPVersion(str, Enum): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/__init__.py index 533d07a8f28d..73039d82a96c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/__init__.py @@ -52,8 +52,10 @@ from ._models_py3 import EncryptionSettingsElement from ._models_py3 import Gallery from ._models_py3 import GalleryApplication + from ._models_py3 import GalleryApplicationUpdate from ._models_py3 import GalleryApplicationVersion from ._models_py3 import GalleryApplicationVersionPublishingProfile + from ._models_py3 import GalleryApplicationVersionUpdate from ._models_py3 import GalleryArtifactPublishingProfileBase from ._models_py3 import GalleryArtifactSource from ._models_py3 import GalleryArtifactVersionSource @@ -62,10 +64,13 @@ from ._models_py3 import GalleryIdentifier from ._models_py3 import GalleryImage from ._models_py3 import GalleryImageIdentifier + from ._models_py3 import GalleryImageUpdate from ._models_py3 import GalleryImageVersion from ._models_py3 import GalleryImageVersionPublishingProfile from ._models_py3 import GalleryImageVersionStorageProfile + from ._models_py3 import GalleryImageVersionUpdate from ._models_py3 import GalleryOSDiskImage + from ._models_py3 import GalleryUpdate from ._models_py3 import GrantAccessData from ._models_py3 import HardwareProfile from ._models_py3 import Image @@ -164,6 +169,7 @@ from ._models_py3 import VirtualMachineScaleSetDataDisk from ._models_py3 import VirtualMachineScaleSetExtension from ._models_py3 import VirtualMachineScaleSetExtensionProfile + from ._models_py3 import VirtualMachineScaleSetExtensionUpdate from ._models_py3 import VirtualMachineScaleSetIdentity from ._models_py3 import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue from ._models_py3 import VirtualMachineScaleSetInstanceView @@ -250,8 +256,10 @@ from ._models import EncryptionSettingsElement from ._models import Gallery from ._models import GalleryApplication + from ._models import GalleryApplicationUpdate from ._models import GalleryApplicationVersion from ._models import GalleryApplicationVersionPublishingProfile + from ._models import GalleryApplicationVersionUpdate from ._models import GalleryArtifactPublishingProfileBase from ._models import GalleryArtifactSource from ._models import GalleryArtifactVersionSource @@ -260,10 +268,13 @@ from ._models import GalleryIdentifier from ._models import GalleryImage from ._models import GalleryImageIdentifier + from ._models import GalleryImageUpdate from ._models import GalleryImageVersion from ._models import GalleryImageVersionPublishingProfile from ._models import GalleryImageVersionStorageProfile + from ._models import GalleryImageVersionUpdate from ._models import GalleryOSDiskImage + from ._models import GalleryUpdate from ._models import GrantAccessData from ._models import HardwareProfile from ._models import Image @@ -362,6 +373,7 @@ from ._models import VirtualMachineScaleSetDataDisk from ._models import VirtualMachineScaleSetExtension from ._models import VirtualMachineScaleSetExtensionProfile + from ._models import VirtualMachineScaleSetExtensionUpdate from ._models import VirtualMachineScaleSetIdentity from ._models import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue from ._models import VirtualMachineScaleSetInstanceView @@ -518,8 +530,10 @@ 'EncryptionSettingsElement', 'Gallery', 'GalleryApplication', + 'GalleryApplicationUpdate', 'GalleryApplicationVersion', 'GalleryApplicationVersionPublishingProfile', + 'GalleryApplicationVersionUpdate', 'GalleryArtifactPublishingProfileBase', 'GalleryArtifactSource', 'GalleryArtifactVersionSource', @@ -528,10 +542,13 @@ 'GalleryIdentifier', 'GalleryImage', 'GalleryImageIdentifier', + 'GalleryImageUpdate', 'GalleryImageVersion', 'GalleryImageVersionPublishingProfile', 'GalleryImageVersionStorageProfile', + 'GalleryImageVersionUpdate', 'GalleryOSDiskImage', + 'GalleryUpdate', 'GrantAccessData', 'HardwareProfile', 'Image', @@ -630,6 +647,7 @@ 'VirtualMachineScaleSetDataDisk', 'VirtualMachineScaleSetExtension', 'VirtualMachineScaleSetExtensionProfile', + 'VirtualMachineScaleSetExtensionUpdate', 'VirtualMachineScaleSetIdentity', 'VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue', 'VirtualMachineScaleSetInstanceView', diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py index d68461d98830..49f96c0b4b04 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py @@ -320,8 +320,8 @@ class VirtualMachineScaleSetScaleInRules(str, Enum): class OperatingSystemStateTypes(str, Enum): - generalized = "Generalized" - specialized = "Specialized" + generalized = "Generalized" #: Generalized image. Needs to be provisioned during deployment time. + specialized = "Specialized" #: Specialized image. Contains already provisioned OS Disk. class IPVersion(str, Enum): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py index c84c3ecae107..1b10c778528c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py @@ -381,17 +381,38 @@ def __init__(self, **kwargs): class UpdateResource(Model): """The Update Resource model definition. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__(self, **kwargs): super(UpdateResource, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.id = None + self.name = None + self.type = None class AvailabilitySetUpdate(UpdateResource): @@ -403,6 +424,12 @@ class AvailabilitySetUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_update_domain_count: Update Domain count. :type platform_update_domain_count: int :param platform_fault_domain_count: Fault Domain count. @@ -424,11 +451,17 @@ class AvailabilitySetUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'statuses': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, @@ -1011,6 +1044,12 @@ class DedicatedHostGroupUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_fault_domain_count: Required. Number of fault domains that the host group can span. :type platform_fault_domain_count: int @@ -1026,12 +1065,18 @@ class DedicatedHostGroupUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1}, 'hosts': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, 'zones': {'key': 'zones', 'type': '[str]'}, @@ -1087,6 +1132,12 @@ class DedicatedHostUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :type platform_fault_domain: int @@ -1120,6 +1171,9 @@ class DedicatedHostUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'platform_fault_domain': {'maximum': 2, 'minimum': 0}, 'host_id': {'readonly': True}, 'virtual_machines': {'readonly': True}, @@ -1130,6 +1184,9 @@ class DedicatedHostUpdate(UpdateResource): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, 'host_id': {'key': 'properties.hostId', 'type': 'str'}, @@ -1861,6 +1918,74 @@ def __init__(self, **kwargs): self.supported_os_type = kwargs.get('supported_os_type', None) +class GalleryApplicationUpdate(UpdateResource): + """Specifies information about the gallery Application Definition that you + want to update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this gallery Application Definition + resource. This property is updatable. + :type description: str + :param eula: The Eula agreement for the gallery Application Definition. + :type eula: str + :param privacy_statement_uri: The privacy statement uri. + :type privacy_statement_uri: str + :param release_note_uri: The release note uri. + :type release_note_uri: str + :param end_of_life_date: The end of life date of the gallery Application + Definition. This property can be used for decommissioning purposes. This + property is updatable. + :type end_of_life_date: datetime + :param supported_os_type: Required. This property allows you to specify + the supported type of the OS that application is built for.

+ Possible values are:

**Windows**

**Linux**. Possible + values include: 'Windows', 'Linux' + :type supported_os_type: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemTypes + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'supported_os_type': {'required': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'eula': {'key': 'properties.eula', 'type': 'str'}, + 'privacy_statement_uri': {'key': 'properties.privacyStatementUri', 'type': 'str'}, + 'release_note_uri': {'key': 'properties.releaseNoteUri', 'type': 'str'}, + 'end_of_life_date': {'key': 'properties.endOfLifeDate', 'type': 'iso-8601'}, + 'supported_os_type': {'key': 'properties.supportedOSType', 'type': 'OperatingSystemTypes'}, + } + + def __init__(self, **kwargs): + super(GalleryApplicationUpdate, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.eula = kwargs.get('eula', None) + self.privacy_statement_uri = kwargs.get('privacy_statement_uri', None) + self.release_note_uri = kwargs.get('release_note_uri', None) + self.end_of_life_date = kwargs.get('end_of_life_date', None) + self.supported_os_type = kwargs.get('supported_os_type', None) + + class GalleryApplicationVersion(Resource): """Specifies information about the gallery Application Version that you want to create or update. @@ -2041,6 +2166,63 @@ def __init__(self, **kwargs): self.enable_health_check = kwargs.get('enable_health_check', None) +class GalleryApplicationVersionUpdate(UpdateResource): + """Specifies information about the gallery Application Version that you want + to update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param publishing_profile: Required. + :type publishing_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile + :ivar provisioning_state: The current state of the gallery Application + Version. The provisioning state, which only appears in the response. + Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', + 'Deleting', 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + :ivar replication_status: + :vartype replication_status: + ~azure.mgmt.compute.v2019_07_01.models.ReplicationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'publishing_profile': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'replication_status': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'publishing_profile': {'key': 'properties.publishingProfile', 'type': 'GalleryApplicationVersionPublishingProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'replication_status': {'key': 'properties.replicationStatus', 'type': 'ReplicationStatus'}, + } + + def __init__(self, **kwargs): + super(GalleryApplicationVersionUpdate, self).__init__(**kwargs) + self.publishing_profile = kwargs.get('publishing_profile', None) + self.provisioning_state = None + self.replication_status = None + + class GalleryArtifactSource(Model): """The source image from which the Image Version is going to be created. @@ -2338,6 +2520,117 @@ def __init__(self, **kwargs): self.sku = kwargs.get('sku', None) +class GalleryImageUpdate(UpdateResource): + """Specifies information about the gallery Image Definition that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this gallery Image Definition + resource. This property is updatable. + :type description: str + :param eula: The Eula agreement for the gallery Image Definition. + :type eula: str + :param privacy_statement_uri: The privacy statement uri. + :type privacy_statement_uri: str + :param release_note_uri: The release note uri. + :type release_note_uri: str + :param os_type: Required. This property allows you to specify the type of + the OS that is included in the disk when creating a VM from a managed + image.

Possible values are:

**Windows**

+ **Linux**. Possible values include: 'Windows', 'Linux' + :type os_type: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemTypes + :param os_state: Required. This property allows the user to specify + whether the virtual machines created under this image are 'Generalized' or + 'Specialized'. Possible values include: 'Generalized', 'Specialized' + :type os_state: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemStateTypes + :param hyper_vgeneration: The hypervisor generation of the Virtual + Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_07_01.models.HyperVGeneration + :param end_of_life_date: The end of life date of the gallery Image + Definition. This property can be used for decommissioning purposes. This + property is updatable. + :type end_of_life_date: datetime + :param identifier: Required. + :type identifier: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageIdentifier + :param recommended: + :type recommended: + ~azure.mgmt.compute.v2019_07_01.models.RecommendedMachineConfiguration + :param disallowed: + :type disallowed: ~azure.mgmt.compute.v2019_07_01.models.Disallowed + :param purchase_plan: + :type purchase_plan: + ~azure.mgmt.compute.v2019_07_01.models.ImagePurchasePlan + :ivar provisioning_state: The current state of the gallery Image + Definition. The provisioning state, which only appears in the response. + Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', + 'Deleting', 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'os_type': {'required': True}, + 'os_state': {'required': True}, + 'identifier': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'eula': {'key': 'properties.eula', 'type': 'str'}, + 'privacy_statement_uri': {'key': 'properties.privacyStatementUri', 'type': 'str'}, + 'release_note_uri': {'key': 'properties.releaseNoteUri', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'OperatingSystemTypes'}, + 'os_state': {'key': 'properties.osState', 'type': 'OperatingSystemStateTypes'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + 'end_of_life_date': {'key': 'properties.endOfLifeDate', 'type': 'iso-8601'}, + 'identifier': {'key': 'properties.identifier', 'type': 'GalleryImageIdentifier'}, + 'recommended': {'key': 'properties.recommended', 'type': 'RecommendedMachineConfiguration'}, + 'disallowed': {'key': 'properties.disallowed', 'type': 'Disallowed'}, + 'purchase_plan': {'key': 'properties.purchasePlan', 'type': 'ImagePurchasePlan'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GalleryImageUpdate, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.eula = kwargs.get('eula', None) + self.privacy_statement_uri = kwargs.get('privacy_statement_uri', None) + self.release_note_uri = kwargs.get('release_note_uri', None) + self.os_type = kwargs.get('os_type', None) + self.os_state = kwargs.get('os_state', None) + self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None) + self.end_of_life_date = kwargs.get('end_of_life_date', None) + self.identifier = kwargs.get('identifier', None) + self.recommended = kwargs.get('recommended', None) + self.disallowed = kwargs.get('disallowed', None) + self.purchase_plan = kwargs.get('purchase_plan', None) + self.provisioning_state = None + + class GalleryImageVersion(Resource): """Specifies information about the gallery Image Version that you want to create or update. @@ -2467,16 +2760,78 @@ class GalleryImageVersionStorageProfile(Model): """ _attribute_map = { - 'source': {'key': 'source', 'type': 'GalleryArtifactVersionSource'}, - 'os_disk_image': {'key': 'osDiskImage', 'type': 'GalleryOSDiskImage'}, - 'data_disk_images': {'key': 'dataDiskImages', 'type': '[GalleryDataDiskImage]'}, + 'source': {'key': 'source', 'type': 'GalleryArtifactVersionSource'}, + 'os_disk_image': {'key': 'osDiskImage', 'type': 'GalleryOSDiskImage'}, + 'data_disk_images': {'key': 'dataDiskImages', 'type': '[GalleryDataDiskImage]'}, + } + + def __init__(self, **kwargs): + super(GalleryImageVersionStorageProfile, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.os_disk_image = kwargs.get('os_disk_image', None) + self.data_disk_images = kwargs.get('data_disk_images', None) + + +class GalleryImageVersionUpdate(UpdateResource): + """Specifies information about the gallery Image Version that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param publishing_profile: + :type publishing_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionPublishingProfile + :ivar provisioning_state: The current state of the gallery Image Version. + The provisioning state, which only appears in the response. Possible + values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', + 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + :param storage_profile: Required. + :type storage_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionStorageProfile + :ivar replication_status: + :vartype replication_status: + ~azure.mgmt.compute.v2019_07_01.models.ReplicationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'storage_profile': {'required': True}, + 'replication_status': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'publishing_profile': {'key': 'properties.publishingProfile', 'type': 'GalleryImageVersionPublishingProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'GalleryImageVersionStorageProfile'}, + 'replication_status': {'key': 'properties.replicationStatus', 'type': 'ReplicationStatus'}, } def __init__(self, **kwargs): - super(GalleryImageVersionStorageProfile, self).__init__(**kwargs) - self.source = kwargs.get('source', None) - self.os_disk_image = kwargs.get('os_disk_image', None) - self.data_disk_images = kwargs.get('data_disk_images', None) + super(GalleryImageVersionUpdate, self).__init__(**kwargs) + self.publishing_profile = kwargs.get('publishing_profile', None) + self.provisioning_state = None + self.storage_profile = kwargs.get('storage_profile', None) + self.replication_status = None class GalleryOSDiskImage(GalleryDiskImage): @@ -2512,6 +2867,58 @@ def __init__(self, **kwargs): super(GalleryOSDiskImage, self).__init__(**kwargs) +class GalleryUpdate(UpdateResource): + """Specifies information about the Shared Image Gallery that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this Shared Image Gallery resource. + This property is updatable. + :type description: str + :param identifier: + :type identifier: ~azure.mgmt.compute.v2019_07_01.models.GalleryIdentifier + :ivar provisioning_state: The current state of the gallery. The + provisioning state, which only appears in the response. Possible values + include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', + 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'identifier': {'key': 'properties.identifier', 'type': 'GalleryIdentifier'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GalleryUpdate, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.identifier = kwargs.get('identifier', None) + self.provisioning_state = None + + class GrantAccessData(Model): """Data used for requesting a SAS. @@ -2986,6 +3393,12 @@ class ImageUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param source_virtual_machine: The source virtual machine from which Image is created. :type source_virtual_machine: @@ -3003,11 +3416,17 @@ class ImageUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -3775,12 +4194,30 @@ def __init__(self, **kwargs): class ProximityPlacementGroupUpdate(UpdateResource): """Specifies information about the proximity placement group. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__(self, **kwargs): @@ -5780,16 +6217,25 @@ def __init__(self, **kwargs): class VirtualMachineExtensionUpdate(UpdateResource): """Describes a Virtual Machine Extension. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. :type force_update_tag: str :param publisher: The name of the extension handler publisher. :type publisher: str - :param type: Specifies the type of the extension; an example is - "CustomScriptExtension". - :type type: str + :param virtual_machine_extension_update_type: Specifies the type of the + extension; an example is "CustomScriptExtension". + :type virtual_machine_extension_update_type: str :param type_handler_version: Specifies the version of the script handler. :type type_handler_version: str :param auto_upgrade_minor_version: Indicates whether the extension should @@ -5805,11 +6251,20 @@ class VirtualMachineExtensionUpdate(UpdateResource): :type protected_settings: object """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'type': {'key': 'properties.type', 'type': 'str'}, + 'virtual_machine_extension_update_type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, @@ -5820,7 +6275,7 @@ def __init__(self, **kwargs): super(VirtualMachineExtensionUpdate, self).__init__(**kwargs) self.force_update_tag = kwargs.get('force_update_tag', None) self.publisher = kwargs.get('publisher', None) - self.type = kwargs.get('type', None) + self.virtual_machine_extension_update_type = kwargs.get('virtual_machine_extension_update_type', None) self.type_handler_version = kwargs.get('type_handler_version', None) self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) self.settings = kwargs.get('settings', None) @@ -6335,15 +6790,17 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): :vartype id: str :param name: The name of the extension. :type name: str + :ivar type: Resource type + :vartype type: str :param force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. :type force_update_tag: str :param publisher: The name of the extension handler publisher. :type publisher: str - :param type: Specifies the type of the extension; an example is + :param type1: Specifies the type of the extension; an example is "CustomScriptExtension". - :type type: str + :type type1: str :param type_handler_version: Specifies the version of the script handler. :type type_handler_version: str :param auto_upgrade_minor_version: Indicates whether the extension should @@ -6367,15 +6824,17 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): _validation = { 'id': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'type': {'key': 'properties.type', 'type': 'str'}, + 'type1': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, @@ -6387,9 +6846,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): def __init__(self, **kwargs): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) self.name = kwargs.get('name', None) + self.type = None self.force_update_tag = kwargs.get('force_update_tag', None) self.publisher = kwargs.get('publisher', None) - self.type = kwargs.get('type', None) + self.type1 = kwargs.get('type1', None) self.type_handler_version = kwargs.get('type_handler_version', None) self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) self.settings = kwargs.get('settings', None) @@ -6416,6 +6876,85 @@ def __init__(self, **kwargs): self.extensions = kwargs.get('extensions', None) +class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param force_update_tag: If a value is provided and is different from the + previous value, the extension handler will be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type1: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type1: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should + use a newer minor version if one is available at deployment time. Once + deployed, however, the extension will not upgrade minor versions unless + redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param settings: Json formatted public settings for the extension. + :type settings: object + :param protected_settings: The extension can contain either + protectedSettings or protectedSettingsFromKeyVault or no protected + settings at all. + :type protected_settings: object + :ivar provisioning_state: The provisioning state, which only appears in + the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after + which this extension needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type1': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(VirtualMachineScaleSetExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type1 = kwargs.get('type1', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.provisioning_state = None + self.provision_after_extensions = kwargs.get('provision_after_extensions', None) + + class VirtualMachineScaleSetIdentity(Model): """Identity for the virtual machine scale set. @@ -7174,8 +7713,17 @@ def __init__(self, **kwargs): class VirtualMachineScaleSetUpdate(UpdateResource): """Describes a Virtual Machine Scale Set. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param sku: The virtual machine scale set sku. :type sku: ~azure.mgmt.compute.v2019_07_01.models.Sku :param plan: The purchase plan when deploying a virtual machine scale set @@ -7222,8 +7770,17 @@ class VirtualMachineScaleSetUpdate(UpdateResource): ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetIdentity """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'plan': {'key': 'plan', 'type': 'Plan'}, 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, @@ -8095,6 +8652,12 @@ class VirtualMachineUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must @@ -8200,6 +8763,9 @@ class VirtualMachineUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'instance_view': {'readonly': True}, 'vm_id': {'readonly': True}, @@ -8207,6 +8773,9 @@ class VirtualMachineUpdate(UpdateResource): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'plan': {'key': 'plan', 'type': 'Plan'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py index 677afac5e2ce..563b5b6d9405 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py @@ -381,17 +381,38 @@ def __init__(self, *, location: str, tags=None, platform_update_domain_count: in class UpdateResource(Model): """The Update Resource model definition. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__(self, *, tags=None, **kwargs) -> None: super(UpdateResource, self).__init__(**kwargs) self.tags = tags + self.id = None + self.name = None + self.type = None class AvailabilitySetUpdate(UpdateResource): @@ -403,6 +424,12 @@ class AvailabilitySetUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_update_domain_count: Update Domain count. :type platform_update_domain_count: int :param platform_fault_domain_count: Fault Domain count. @@ -424,11 +451,17 @@ class AvailabilitySetUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'statuses': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, @@ -1011,6 +1044,12 @@ class DedicatedHostGroupUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_fault_domain_count: Required. Number of fault domains that the host group can span. :type platform_fault_domain_count: int @@ -1026,12 +1065,18 @@ class DedicatedHostGroupUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1}, 'hosts': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, 'zones': {'key': 'zones', 'type': '[str]'}, @@ -1087,6 +1132,12 @@ class DedicatedHostUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :type platform_fault_domain: int @@ -1120,6 +1171,9 @@ class DedicatedHostUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'platform_fault_domain': {'maximum': 2, 'minimum': 0}, 'host_id': {'readonly': True}, 'virtual_machines': {'readonly': True}, @@ -1130,6 +1184,9 @@ class DedicatedHostUpdate(UpdateResource): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, 'host_id': {'key': 'properties.hostId', 'type': 'str'}, @@ -1861,6 +1918,74 @@ def __init__(self, *, location: str, supported_os_type, tags=None, description: self.supported_os_type = supported_os_type +class GalleryApplicationUpdate(UpdateResource): + """Specifies information about the gallery Application Definition that you + want to update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this gallery Application Definition + resource. This property is updatable. + :type description: str + :param eula: The Eula agreement for the gallery Application Definition. + :type eula: str + :param privacy_statement_uri: The privacy statement uri. + :type privacy_statement_uri: str + :param release_note_uri: The release note uri. + :type release_note_uri: str + :param end_of_life_date: The end of life date of the gallery Application + Definition. This property can be used for decommissioning purposes. This + property is updatable. + :type end_of_life_date: datetime + :param supported_os_type: Required. This property allows you to specify + the supported type of the OS that application is built for.

+ Possible values are:

**Windows**

**Linux**. Possible + values include: 'Windows', 'Linux' + :type supported_os_type: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemTypes + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'supported_os_type': {'required': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'eula': {'key': 'properties.eula', 'type': 'str'}, + 'privacy_statement_uri': {'key': 'properties.privacyStatementUri', 'type': 'str'}, + 'release_note_uri': {'key': 'properties.releaseNoteUri', 'type': 'str'}, + 'end_of_life_date': {'key': 'properties.endOfLifeDate', 'type': 'iso-8601'}, + 'supported_os_type': {'key': 'properties.supportedOSType', 'type': 'OperatingSystemTypes'}, + } + + def __init__(self, *, supported_os_type, tags=None, description: str=None, eula: str=None, privacy_statement_uri: str=None, release_note_uri: str=None, end_of_life_date=None, **kwargs) -> None: + super(GalleryApplicationUpdate, self).__init__(tags=tags, **kwargs) + self.description = description + self.eula = eula + self.privacy_statement_uri = privacy_statement_uri + self.release_note_uri = release_note_uri + self.end_of_life_date = end_of_life_date + self.supported_os_type = supported_os_type + + class GalleryApplicationVersion(Resource): """Specifies information about the gallery Application Version that you want to create or update. @@ -2041,6 +2166,63 @@ def __init__(self, *, source, target_regions=None, replica_count: int=None, excl self.enable_health_check = enable_health_check +class GalleryApplicationVersionUpdate(UpdateResource): + """Specifies information about the gallery Application Version that you want + to update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param publishing_profile: Required. + :type publishing_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile + :ivar provisioning_state: The current state of the gallery Application + Version. The provisioning state, which only appears in the response. + Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', + 'Deleting', 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + :ivar replication_status: + :vartype replication_status: + ~azure.mgmt.compute.v2019_07_01.models.ReplicationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'publishing_profile': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'replication_status': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'publishing_profile': {'key': 'properties.publishingProfile', 'type': 'GalleryApplicationVersionPublishingProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'replication_status': {'key': 'properties.replicationStatus', 'type': 'ReplicationStatus'}, + } + + def __init__(self, *, publishing_profile, tags=None, **kwargs) -> None: + super(GalleryApplicationVersionUpdate, self).__init__(tags=tags, **kwargs) + self.publishing_profile = publishing_profile + self.provisioning_state = None + self.replication_status = None + + class GalleryArtifactSource(Model): """The source image from which the Image Version is going to be created. @@ -2338,6 +2520,117 @@ def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs) -> None: self.sku = sku +class GalleryImageUpdate(UpdateResource): + """Specifies information about the gallery Image Definition that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this gallery Image Definition + resource. This property is updatable. + :type description: str + :param eula: The Eula agreement for the gallery Image Definition. + :type eula: str + :param privacy_statement_uri: The privacy statement uri. + :type privacy_statement_uri: str + :param release_note_uri: The release note uri. + :type release_note_uri: str + :param os_type: Required. This property allows you to specify the type of + the OS that is included in the disk when creating a VM from a managed + image.

Possible values are:

**Windows**

+ **Linux**. Possible values include: 'Windows', 'Linux' + :type os_type: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemTypes + :param os_state: Required. This property allows the user to specify + whether the virtual machines created under this image are 'Generalized' or + 'Specialized'. Possible values include: 'Generalized', 'Specialized' + :type os_state: str or + ~azure.mgmt.compute.v2019_07_01.models.OperatingSystemStateTypes + :param hyper_vgeneration: The hypervisor generation of the Virtual + Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_07_01.models.HyperVGeneration + :param end_of_life_date: The end of life date of the gallery Image + Definition. This property can be used for decommissioning purposes. This + property is updatable. + :type end_of_life_date: datetime + :param identifier: Required. + :type identifier: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageIdentifier + :param recommended: + :type recommended: + ~azure.mgmt.compute.v2019_07_01.models.RecommendedMachineConfiguration + :param disallowed: + :type disallowed: ~azure.mgmt.compute.v2019_07_01.models.Disallowed + :param purchase_plan: + :type purchase_plan: + ~azure.mgmt.compute.v2019_07_01.models.ImagePurchasePlan + :ivar provisioning_state: The current state of the gallery Image + Definition. The provisioning state, which only appears in the response. + Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', + 'Deleting', 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'os_type': {'required': True}, + 'os_state': {'required': True}, + 'identifier': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'eula': {'key': 'properties.eula', 'type': 'str'}, + 'privacy_statement_uri': {'key': 'properties.privacyStatementUri', 'type': 'str'}, + 'release_note_uri': {'key': 'properties.releaseNoteUri', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'OperatingSystemTypes'}, + 'os_state': {'key': 'properties.osState', 'type': 'OperatingSystemStateTypes'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + 'end_of_life_date': {'key': 'properties.endOfLifeDate', 'type': 'iso-8601'}, + 'identifier': {'key': 'properties.identifier', 'type': 'GalleryImageIdentifier'}, + 'recommended': {'key': 'properties.recommended', 'type': 'RecommendedMachineConfiguration'}, + 'disallowed': {'key': 'properties.disallowed', 'type': 'Disallowed'}, + 'purchase_plan': {'key': 'properties.purchasePlan', 'type': 'ImagePurchasePlan'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, os_type, os_state, identifier, tags=None, description: str=None, eula: str=None, privacy_statement_uri: str=None, release_note_uri: str=None, hyper_vgeneration=None, end_of_life_date=None, recommended=None, disallowed=None, purchase_plan=None, **kwargs) -> None: + super(GalleryImageUpdate, self).__init__(tags=tags, **kwargs) + self.description = description + self.eula = eula + self.privacy_statement_uri = privacy_statement_uri + self.release_note_uri = release_note_uri + self.os_type = os_type + self.os_state = os_state + self.hyper_vgeneration = hyper_vgeneration + self.end_of_life_date = end_of_life_date + self.identifier = identifier + self.recommended = recommended + self.disallowed = disallowed + self.purchase_plan = purchase_plan + self.provisioning_state = None + + class GalleryImageVersion(Resource): """Specifies information about the gallery Image Version that you want to create or update. @@ -2467,16 +2760,78 @@ class GalleryImageVersionStorageProfile(Model): """ _attribute_map = { - 'source': {'key': 'source', 'type': 'GalleryArtifactVersionSource'}, - 'os_disk_image': {'key': 'osDiskImage', 'type': 'GalleryOSDiskImage'}, - 'data_disk_images': {'key': 'dataDiskImages', 'type': '[GalleryDataDiskImage]'}, + 'source': {'key': 'source', 'type': 'GalleryArtifactVersionSource'}, + 'os_disk_image': {'key': 'osDiskImage', 'type': 'GalleryOSDiskImage'}, + 'data_disk_images': {'key': 'dataDiskImages', 'type': '[GalleryDataDiskImage]'}, + } + + def __init__(self, *, source=None, os_disk_image=None, data_disk_images=None, **kwargs) -> None: + super(GalleryImageVersionStorageProfile, self).__init__(**kwargs) + self.source = source + self.os_disk_image = os_disk_image + self.data_disk_images = data_disk_images + + +class GalleryImageVersionUpdate(UpdateResource): + """Specifies information about the gallery Image Version that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param publishing_profile: + :type publishing_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionPublishingProfile + :ivar provisioning_state: The current state of the gallery Image Version. + The provisioning state, which only appears in the response. Possible + values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', + 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + :param storage_profile: Required. + :type storage_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionStorageProfile + :ivar replication_status: + :vartype replication_status: + ~azure.mgmt.compute.v2019_07_01.models.ReplicationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'storage_profile': {'required': True}, + 'replication_status': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'publishing_profile': {'key': 'properties.publishingProfile', 'type': 'GalleryImageVersionPublishingProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'GalleryImageVersionStorageProfile'}, + 'replication_status': {'key': 'properties.replicationStatus', 'type': 'ReplicationStatus'}, } - def __init__(self, *, source=None, os_disk_image=None, data_disk_images=None, **kwargs) -> None: - super(GalleryImageVersionStorageProfile, self).__init__(**kwargs) - self.source = source - self.os_disk_image = os_disk_image - self.data_disk_images = data_disk_images + def __init__(self, *, storage_profile, tags=None, publishing_profile=None, **kwargs) -> None: + super(GalleryImageVersionUpdate, self).__init__(tags=tags, **kwargs) + self.publishing_profile = publishing_profile + self.provisioning_state = None + self.storage_profile = storage_profile + self.replication_status = None class GalleryOSDiskImage(GalleryDiskImage): @@ -2512,6 +2867,58 @@ def __init__(self, *, host_caching=None, source=None, **kwargs) -> None: super(GalleryOSDiskImage, self).__init__(host_caching=host_caching, source=source, **kwargs) +class GalleryUpdate(UpdateResource): + """Specifies information about the Shared Image Gallery that you want to + update. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param tags: Resource tags + :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param description: The description of this Shared Image Gallery resource. + This property is updatable. + :type description: str + :param identifier: + :type identifier: ~azure.mgmt.compute.v2019_07_01.models.GalleryIdentifier + :ivar provisioning_state: The current state of the gallery. The + provisioning state, which only appears in the response. Possible values + include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', + 'Migrating' + :vartype provisioning_state: str or + ~azure.mgmt.compute.v2019_07_01.models.enum + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'identifier': {'key': 'properties.identifier', 'type': 'GalleryIdentifier'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, tags=None, description: str=None, identifier=None, **kwargs) -> None: + super(GalleryUpdate, self).__init__(tags=tags, **kwargs) + self.description = description + self.identifier = identifier + self.provisioning_state = None + + class GrantAccessData(Model): """Data used for requesting a SAS. @@ -2986,6 +3393,12 @@ class ImageUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param source_virtual_machine: The source virtual machine from which Image is created. :type source_virtual_machine: @@ -3003,11 +3416,17 @@ class ImageUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -3775,12 +4194,30 @@ def __init__(self, *, location: str, tags=None, proximity_placement_group_type=N class ProximityPlacementGroupUpdate(UpdateResource): """Specifies information about the proximity placement group. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__(self, *, tags=None, **kwargs) -> None: @@ -5780,16 +6217,25 @@ def __init__(self, *, value=None, **kwargs) -> None: class VirtualMachineExtensionUpdate(UpdateResource): """Describes a Virtual Machine Extension. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. :type force_update_tag: str :param publisher: The name of the extension handler publisher. :type publisher: str - :param type: Specifies the type of the extension; an example is - "CustomScriptExtension". - :type type: str + :param virtual_machine_extension_update_type: Specifies the type of the + extension; an example is "CustomScriptExtension". + :type virtual_machine_extension_update_type: str :param type_handler_version: Specifies the version of the script handler. :type type_handler_version: str :param auto_upgrade_minor_version: Indicates whether the extension should @@ -5805,22 +6251,31 @@ class VirtualMachineExtensionUpdate(UpdateResource): :type protected_settings: object """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'type': {'key': 'properties.type', 'type': 'str'}, + 'virtual_machine_extension_update_type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, } - def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None: + def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, virtual_machine_extension_update_type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None: super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) self.force_update_tag = force_update_tag self.publisher = publisher - self.type = type + self.virtual_machine_extension_update_type = virtual_machine_extension_update_type self.type_handler_version = type_handler_version self.auto_upgrade_minor_version = auto_upgrade_minor_version self.settings = settings @@ -6335,15 +6790,17 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): :vartype id: str :param name: The name of the extension. :type name: str + :ivar type: Resource type + :vartype type: str :param force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. :type force_update_tag: str :param publisher: The name of the extension handler publisher. :type publisher: str - :param type: Specifies the type of the extension; an example is + :param type1: Specifies the type of the extension; an example is "CustomScriptExtension". - :type type: str + :type type1: str :param type_handler_version: Specifies the version of the script handler. :type type_handler_version: str :param auto_upgrade_minor_version: Indicates whether the extension should @@ -6367,15 +6824,17 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): _validation = { 'id': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'type': {'key': 'properties.type', 'type': 'str'}, + 'type1': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, @@ -6384,12 +6843,13 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } - def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None: + def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None: super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) self.name = name + self.type = None self.force_update_tag = force_update_tag self.publisher = publisher - self.type = type + self.type1 = type1 self.type_handler_version = type_handler_version self.auto_upgrade_minor_version = auto_upgrade_minor_version self.settings = settings @@ -6416,6 +6876,85 @@ def __init__(self, *, extensions=None, **kwargs) -> None: self.extensions = extensions +class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param force_update_tag: If a value is provided and is different from the + previous value, the extension handler will be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type1: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type1: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should + use a newer minor version if one is available at deployment time. Once + deployed, however, the extension will not upgrade minor versions unless + redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param settings: Json formatted public settings for the extension. + :type settings: object + :param protected_settings: The extension can contain either + protectedSettings or protectedSettingsFromKeyVault or no protected + settings at all. + :type protected_settings: object + :ivar provisioning_state: The provisioning state, which only appears in + the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after + which this extension needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type1': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__(self, *, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None: + super(VirtualMachineScaleSetExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type1 = type1 + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.settings = settings + self.protected_settings = protected_settings + self.provisioning_state = None + self.provision_after_extensions = provision_after_extensions + + class VirtualMachineScaleSetIdentity(Model): """Identity for the virtual machine scale set. @@ -7174,8 +7713,17 @@ def __init__(self, *, image_reference=None, os_disk=None, data_disks=None, **kwa class VirtualMachineScaleSetUpdate(UpdateResource): """Describes a Virtual Machine Scale Set. + Variables are only populated by the server, and will be ignored when + sending a request. + :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param sku: The virtual machine scale set sku. :type sku: ~azure.mgmt.compute.v2019_07_01.models.Sku :param plan: The purchase plan when deploying a virtual machine scale set @@ -7222,8 +7770,17 @@ class VirtualMachineScaleSetUpdate(UpdateResource): ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetIdentity """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'plan': {'key': 'plan', 'type': 'Plan'}, 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, @@ -8095,6 +8652,12 @@ class VirtualMachineUpdate(UpdateResource): :param tags: Resource tags :type tags: dict[str, str] + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str :param plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must @@ -8200,6 +8763,9 @@ class VirtualMachineUpdate(UpdateResource): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'instance_view': {'readonly': True}, 'vm_id': {'readonly': True}, @@ -8207,6 +8773,9 @@ class VirtualMachineUpdate(UpdateResource): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'plan': {'key': 'plan', 'type': 'Plan'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py index 9cf579a28d61..189b7b3b618e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py @@ -148,6 +148,109 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'} + + def _update_initial( + self, resource_group_name, gallery_name, gallery, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'galleryName': self._serialize.url("gallery_name", gallery_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gallery, 'GalleryUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Gallery', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, gallery_name, gallery, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a Shared Image Gallery. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gallery_name: The name of the Shared Image Gallery. The allowed + characters are alphabets and numbers with dots and periods allowed in + the middle. The maximum length is 80 characters. + :type gallery_name: str + :param gallery: Parameters supplied to the update Shared Image Gallery + operation. + :type gallery: ~azure.mgmt.compute.v2019_07_01.models.GalleryUpdate + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Gallery or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.Gallery] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.Gallery]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + gallery_name=gallery_name, + gallery=gallery, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Gallery', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'} + def get( self, resource_group_name, gallery_name, custom_headers=None, raw=False, **operation_config): """Retrieves information about a Shared Image Gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py index 42011baf9295..29e685096384 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py @@ -162,6 +162,127 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'} + + def _update_initial( + self, resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, publishing_profile, tags=None, custom_headers=None, raw=False, **operation_config): + gallery_application_version = models.GalleryApplicationVersionUpdate(tags=tags, publishing_profile=publishing_profile) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'galleryName': self._serialize.url("gallery_name", gallery_name, 'str'), + 'galleryApplicationName': self._serialize.url("gallery_application_name", gallery_application_name, 'str'), + 'galleryApplicationVersionName': self._serialize.url("gallery_application_version_name", gallery_application_version_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gallery_application_version, 'GalleryApplicationVersionUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GalleryApplicationVersion', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, publishing_profile, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a gallery Application Version. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gallery_name: The name of the Shared Application Gallery in + which the Application Definition resides. + :type gallery_name: str + :param gallery_application_name: The name of the gallery Application + Definition in which the Application Version is to be updated. + :type gallery_application_name: str + :param gallery_application_version_name: The name of the gallery + Application Version to be updated. Needs to follow semantic version + name pattern: The allowed characters are digit and period. Digits must + be within the range of a 32-bit integer. Format: + .. + :type gallery_application_version_name: str + :param publishing_profile: + :type publishing_profile: + ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile + :param tags: Resource tags + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + GalleryApplicationVersion or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersion] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersion]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + gallery_name=gallery_name, + gallery_application_name=gallery_application_name, + gallery_application_version_name=gallery_application_version_name, + publishing_profile=publishing_profile, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GalleryApplicationVersion', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}'} + def get( self, resource_group_name, gallery_name, gallery_application_name, gallery_application_version_name, expand=None, custom_headers=None, raw=False, **operation_config): """Retrieves information about a gallery Application Version. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py index c140e2097417..3b6746cae08c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py @@ -155,6 +155,116 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}'} + + def _update_initial( + self, resource_group_name, gallery_name, gallery_application_name, gallery_application, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'galleryName': self._serialize.url("gallery_name", gallery_name, 'str'), + 'galleryApplicationName': self._serialize.url("gallery_application_name", gallery_application_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gallery_application, 'GalleryApplicationUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GalleryApplication', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, gallery_name, gallery_application_name, gallery_application, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a gallery Application Definition. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gallery_name: The name of the Shared Application Gallery in + which the Application Definition is to be updated. + :type gallery_name: str + :param gallery_application_name: The name of the gallery Application + Definition to be updated. The allowed characters are alphabets and + numbers with dots, dashes, and periods allowed in the middle. The + maximum length is 80 characters. + :type gallery_application_name: str + :param gallery_application: Parameters supplied to the update gallery + Application operation. + :type gallery_application: + ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationUpdate + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GalleryApplication or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.GalleryApplication] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.GalleryApplication]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + gallery_name=gallery_name, + gallery_application_name=gallery_application_name, + gallery_application=gallery_application, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GalleryApplication', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}'} + def get( self, resource_group_name, gallery_name, gallery_application_name, custom_headers=None, raw=False, **operation_config): """Retrieves information about a gallery Application Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py index d259bb7498c4..950acbd109ef 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py @@ -161,6 +161,122 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'} + + def _update_initial( + self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'galleryName': self._serialize.url("gallery_name", gallery_name, 'str'), + 'galleryImageName': self._serialize.url("gallery_image_name", gallery_image_name, 'str'), + 'galleryImageVersionName': self._serialize.url("gallery_image_version_name", gallery_image_version_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gallery_image_version, 'GalleryImageVersionUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GalleryImageVersion', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, gallery_image_version, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a gallery Image Version. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gallery_name: The name of the Shared Image Gallery in which the + Image Definition resides. + :type gallery_name: str + :param gallery_image_name: The name of the gallery Image Definition in + which the Image Version is to be updated. + :type gallery_image_name: str + :param gallery_image_version_name: The name of the gallery Image + Version to be updated. Needs to follow semantic version name pattern: + The allowed characters are digit and period. Digits must be within the + range of a 32-bit integer. Format: + .. + :type gallery_image_version_name: str + :param gallery_image_version: Parameters supplied to the update + gallery Image Version operation. + :type gallery_image_version: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionUpdate + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GalleryImageVersion or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersion] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersion]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + gallery_name=gallery_name, + gallery_image_name=gallery_image_name, + gallery_image_version_name=gallery_image_version_name, + gallery_image_version=gallery_image_version, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GalleryImageVersion', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}'} + def get( self, resource_group_name, gallery_name, gallery_image_name, gallery_image_version_name, expand=None, custom_headers=None, raw=False, **operation_config): """Retrieves information about a gallery Image Version. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py index 7e161459ff95..1550a645829c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py @@ -155,6 +155,116 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}'} + + def _update_initial( + self, resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'galleryName': self._serialize.url("gallery_name", gallery_name, 'str'), + 'galleryImageName': self._serialize.url("gallery_image_name", gallery_image_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gallery_image, 'GalleryImageUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GalleryImage', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a gallery Image Definition. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gallery_name: The name of the Shared Image Gallery in which the + Image Definition is to be updated. + :type gallery_name: str + :param gallery_image_name: The name of the gallery Image Definition to + be updated. The allowed characters are alphabets and numbers with + dots, dashes, and periods allowed in the middle. The maximum length is + 80 characters. + :type gallery_image_name: str + :param gallery_image: Parameters supplied to the update gallery image + operation. + :type gallery_image: + ~azure.mgmt.compute.v2019_07_01.models.GalleryImageUpdate + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GalleryImage or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.GalleryImage] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.GalleryImage]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + gallery_name=gallery_name, + gallery_image_name=gallery_image_name, + gallery_image=gallery_image, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GalleryImage', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}'} + def get( self, resource_group_name, gallery_name, gallery_image_name, custom_headers=None, raw=False, **operation_config): """Retrieves information about a gallery Image Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py index 03c33ef41308..7198e46e7395 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -152,6 +152,116 @@ def get_long_running_output(response): create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} + def _update_initial( + self, resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetExtensionUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """The operation to update an extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the + extension should be updated. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param extension_parameters: Parameters supplied to the Update VM + scale set Extension operation. + :type extension_parameters: + ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtensionUpdate + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VirtualMachineScaleSetExtension or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtension] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtension]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + extension_parameters=extension_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualMachineScaleSetExtension', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} + + def _delete_initial( self, resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers=None, raw=False, **operation_config): # Construct URL diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py index d59253d082ea..19da4142b259 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py @@ -797,7 +797,13 @@ def get_long_running_output(response): def generalize( self, resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config): - """Sets the state of the virtual machine to generalized. + """Sets the OS state of the virtual machine to generalized. It is + recommended to sysprep the virtual machine before performing this + operation.
For Windows, please refer to [Create a managed image of + a generalized VM in + Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).
For + Linux, please refer to [How to create an image of a virtual machine or + VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image). :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/test-repo-billy.azure-sdk-for-python.artifacts.zip b/test-repo-billy.azure-sdk-for-python.artifacts.zip new file mode 100644 index 000000000000..88f9aaf3ebbd Binary files /dev/null and b/test-repo-billy.azure-sdk-for-python.artifacts.zip differ