diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py index 9cfc43b8bf87..998f7ba41e89 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py @@ -144,6 +144,7 @@ from ._models_py3 import UpgradePolicy from ._models_py3 import Usage from ._models_py3 import UsageName + from ._models_py3 import UserArtifactManage from ._models_py3 import UserArtifactSource from ._models_py3 import UserAssignedIdentitiesValue from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput @@ -358,6 +359,7 @@ from ._models import UpgradePolicy # type: ignore from ._models import Usage # type: ignore from ._models import UsageName # type: ignore + from ._models import UserArtifactManage # type: ignore from ._models import UserArtifactSource # type: ignore from ._models import UserAssignedIdentitiesValue # type: ignore from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore @@ -619,6 +621,7 @@ 'UpgradePolicy', 'Usage', 'UsageName', + 'UserArtifactManage', 'UserArtifactSource', 'UserAssignedIdentitiesValue', 'VMScaleSetConvertToSinglePlacementGroupInput', 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 b6a6cd2f8b49..686b80d8b893 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 @@ -230,7 +230,9 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En SPECIALIZED = "Specialized" #: Specialized image. Contains already provisioned OS Disk. class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The operating system of the osDiskImage. + """This property allows you to specify the supported type of the OS that application is built for. + :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Windows** + :code:`
`:code:`
` **Linux** """ WINDOWS = "Windows" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py index 84584b2e26a4..8895cf70ed61 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py @@ -1790,7 +1790,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -1913,7 +1913,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -1939,9 +1939,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_03_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -1959,7 +1958,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -1969,7 +1968,7 @@ def __init__( ): super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs) self.source = kwargs['source'] - self.content_type = kwargs.get('content_type', None) + self.manage_actions = kwargs.get('manage_actions', None) self.enable_health_check = kwargs.get('enable_health_check', None) @@ -5278,26 +5277,64 @@ def __init__( self.localized_value = kwargs.get('localized_value', None) +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = kwargs['install'] + self.remove = kwargs['remove'] + self.update = kwargs.get('update', None) + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( @@ -5305,8 +5342,8 @@ def __init__( **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = kwargs['file_name'] self.media_link = kwargs['media_link'] + self.default_configuration_link = kwargs.get('default_configuration_link', None) class UserAssignedIdentitiesValue(msrest.serialization.Model): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py index 2ef70acccf80..40bea055ee16 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py @@ -1964,7 +1964,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -2100,7 +2100,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -2126,9 +2126,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_03_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_03_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -2146,7 +2145,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -2159,13 +2158,13 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "StorageAccountType"]] = None, - content_type: Optional[str] = None, + manage_actions: Optional["UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, **kwargs ): super(GalleryApplicationVersionPublishingProfile, self).__init__(target_regions=target_regions, replica_count=replica_count, exclude_from_latest=exclude_from_latest, end_of_life_date=end_of_life_date, storage_account_type=storage_account_type, **kwargs) self.source = source - self.content_type = content_type + self.manage_actions = manage_actions self.enable_health_check = enable_health_check @@ -5782,38 +5781,80 @@ def __init__( self.localized_value = localized_value +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + *, + install: str, + remove: str, + update: Optional[str] = None, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = install + self.remove = remove + self.update = update + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( self, *, - file_name: str, media_link: str, + default_configuration_link: Optional[str] = None, **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = file_name self.media_link = media_link + self.default_configuration_link = default_configuration_link class UserAssignedIdentitiesValue(msrest.serialization.Model): 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 705444a63a8e..17aabb899970 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 @@ -158,6 +158,7 @@ from ._models_py3 import UpgradePolicy from ._models_py3 import Usage from ._models_py3 import UsageName + from ._models_py3 import UserArtifactManage from ._models_py3 import UserArtifactSource from ._models_py3 import UserAssignedIdentitiesValue from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput @@ -387,6 +388,7 @@ from ._models import UpgradePolicy # type: ignore from ._models import Usage # type: ignore from ._models import UsageName # type: ignore + from ._models import UserArtifactManage # type: ignore from ._models import UserArtifactSource # type: ignore from ._models import UserAssignedIdentitiesValue # type: ignore from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore @@ -665,6 +667,7 @@ 'UpgradePolicy', 'Usage', 'UsageName', + 'UserArtifactManage', 'UserArtifactSource', 'UserAssignedIdentitiesValue', 'VMScaleSetConvertToSinglePlacementGroupInput', 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 db5174b68e4e..2c8c68dcba49 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 @@ -243,7 +243,7 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En SPECIALIZED = "Specialized" #: Specialized image. Contains already provisioned OS Disk. class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The operating system of the osDiskImage. + """The Operating System type. """ WINDOWS = "Windows" 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 7ea5aff57707..b753791be8ba 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 @@ -2085,7 +2085,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -2208,7 +2208,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -2234,9 +2234,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_07_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_07_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_07_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -2254,7 +2253,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -2264,7 +2263,7 @@ def __init__( ): super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs) self.source = kwargs['source'] - self.content_type = kwargs.get('content_type', None) + self.manage_actions = kwargs.get('manage_actions', None) self.enable_health_check = kwargs.get('enable_health_check', None) @@ -2275,7 +2274,7 @@ class GalleryApplicationVersionUpdate(UpdateResource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -5897,26 +5896,64 @@ def __init__( self.localized_value = kwargs.get('localized_value', None) +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = kwargs['install'] + self.remove = kwargs['remove'] + self.update = kwargs.get('update', None) + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( @@ -5924,8 +5961,8 @@ def __init__( **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = kwargs['file_name'] self.media_link = kwargs['media_link'] + self.default_configuration_link = kwargs.get('default_configuration_link', None) class UserAssignedIdentitiesValue(msrest.serialization.Model): 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 fdb9722539de..75cb44c41166 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 @@ -2289,7 +2289,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -2425,7 +2425,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -2451,9 +2451,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_07_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_07_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_07_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -2471,7 +2470,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -2484,13 +2483,13 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "StorageAccountType"]] = None, - content_type: Optional[str] = None, + manage_actions: Optional["UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, **kwargs ): super(GalleryApplicationVersionPublishingProfile, self).__init__(target_regions=target_regions, replica_count=replica_count, exclude_from_latest=exclude_from_latest, end_of_life_date=end_of_life_date, storage_account_type=storage_account_type, **kwargs) self.source = source - self.content_type = content_type + self.manage_actions = manage_actions self.enable_health_check = enable_health_check @@ -2501,7 +2500,7 @@ class GalleryApplicationVersionUpdate(UpdateResource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -6488,38 +6487,80 @@ def __init__( self.localized_value = localized_value +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + *, + install: str, + remove: str, + update: Optional[str] = None, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = install + self.remove = remove + self.update = update + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( self, *, - file_name: str, media_link: str, + default_configuration_link: Optional[str] = None, **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = file_name self.media_link = media_link + self.default_configuration_link = default_configuration_link class UserAssignedIdentitiesValue(msrest.serialization.Model): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/__init__.py index c270d3b51252..cc5ac42515d4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/__init__.py @@ -147,6 +147,7 @@ from ._models_py3 import UpgradePolicy from ._models_py3 import Usage from ._models_py3 import UsageName + from ._models_py3 import UserArtifactManage from ._models_py3 import UserArtifactSource from ._models_py3 import UserAssignedIdentitiesValue from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput @@ -365,6 +366,7 @@ from ._models import UpgradePolicy # type: ignore from ._models import Usage # type: ignore from ._models import UsageName # type: ignore + from ._models import UserArtifactManage # type: ignore from ._models import UserArtifactSource # type: ignore from ._models import UserAssignedIdentitiesValue # type: ignore from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore @@ -629,6 +631,7 @@ 'UpgradePolicy', 'Usage', 'UsageName', + 'UserArtifactManage', 'UserArtifactSource', 'UserAssignedIdentitiesValue', 'VMScaleSetConvertToSinglePlacementGroupInput', diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py index 9a66882ad198..c91bc832c271 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py @@ -1652,7 +1652,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -1776,7 +1776,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -1803,9 +1803,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_12_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_12_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_12_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -1823,7 +1822,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -1833,7 +1832,7 @@ def __init__( ): super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs) self.source = kwargs['source'] - self.content_type = kwargs.get('content_type', None) + self.manage_actions = kwargs.get('manage_actions', None) self.enable_health_check = kwargs.get('enable_health_check', None) @@ -1850,7 +1849,7 @@ class GalleryApplicationVersionUpdate(UpdateResourceDefinition): :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -5395,26 +5394,64 @@ def __init__( self.localized_value = kwargs.get('localized_value', None) +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = kwargs['install'] + self.remove = kwargs['remove'] + self.update = kwargs.get('update', None) + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( @@ -5422,8 +5459,8 @@ def __init__( **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = kwargs['file_name'] self.media_link = kwargs['media_link'] + self.default_configuration_link = kwargs.get('default_configuration_link', None) class UserAssignedIdentitiesValue(msrest.serialization.Model): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py index 96ca84e142b9..74f50d4c0c7a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py @@ -1810,7 +1810,7 @@ class GalleryApplicationVersion(Resource): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -1947,7 +1947,7 @@ def __init__( class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): - """The publishing profile of a gallery Image Version. + """The publishing profile of a gallery image version. Variables are only populated by the server, and will be ignored when sending a request. @@ -1974,9 +1974,8 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil :type storage_account_type: str or ~azure.mgmt.compute.v2019_12_01.models.StorageAccountType :param source: Required. The source image from which the Image Version is going to be created. :type source: ~azure.mgmt.compute.v2019_12_01.models.UserArtifactSource - :param content_type: Optional. May be used to help process this file. The type of file - contained in the source, e.g. zip, json, etc. - :type content_type: str + :param manage_actions: + :type manage_actions: ~azure.mgmt.compute.v2019_12_01.models.UserArtifactManage :param enable_health_check: Optional. Whether or not this application reports health. :type enable_health_check: bool """ @@ -1994,7 +1993,7 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, 'source': {'key': 'source', 'type': 'UserArtifactSource'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, + 'manage_actions': {'key': 'manageActions', 'type': 'UserArtifactManage'}, 'enable_health_check': {'key': 'enableHealthCheck', 'type': 'bool'}, } @@ -2007,13 +2006,13 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "StorageAccountType"]] = None, - content_type: Optional[str] = None, + manage_actions: Optional["UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, **kwargs ): super(GalleryApplicationVersionPublishingProfile, self).__init__(target_regions=target_regions, replica_count=replica_count, exclude_from_latest=exclude_from_latest, end_of_life_date=end_of_life_date, storage_account_type=storage_account_type, **kwargs) self.source = source - self.content_type = content_type + self.manage_actions = manage_actions self.enable_health_check = enable_health_check @@ -2030,7 +2029,7 @@ class GalleryApplicationVersionUpdate(UpdateResourceDefinition): :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param publishing_profile: The publishing profile of a gallery Image Version. + :param publishing_profile: The publishing profile of a gallery image version. :type publishing_profile: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionPublishingProfile :ivar provisioning_state: The provisioning state, which only appears in the response. Possible @@ -5923,38 +5922,80 @@ def __init__( self.localized_value = localized_value +class UserArtifactManage(msrest.serialization.Model): + """UserArtifactManage. + + All required parameters must be populated in order to send to Azure. + + :param install: Required. Required. The path and arguments to install the gallery application. + This is limited to 4096 characters. + :type install: str + :param remove: Required. Required. The path and arguments to remove the gallery application. + This is limited to 4096 characters. + :type remove: str + :param update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :type update: str + """ + + _validation = { + 'install': {'required': True}, + 'remove': {'required': True}, + } + + _attribute_map = { + 'install': {'key': 'install', 'type': 'str'}, + 'remove': {'key': 'remove', 'type': 'str'}, + 'update': {'key': 'update', 'type': 'str'}, + } + + def __init__( + self, + *, + install: str, + remove: str, + update: Optional[str] = None, + **kwargs + ): + super(UserArtifactManage, self).__init__(**kwargs) + self.install = install + self.remove = remove + self.update = update + + class UserArtifactSource(msrest.serialization.Model): """The source image from which the Image Version is going to be created. All required parameters must be populated in order to send to Azure. - :param file_name: Required. Required. The fileName of the artifact. - :type file_name: str :param media_link: Required. Required. The mediaLink of the artifact, must be a readable - storage blob. + storage page blob. :type media_link: str + :param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must + be a readable storage page blob. + :type default_configuration_link: str """ _validation = { - 'file_name': {'required': True}, 'media_link': {'required': True}, } _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, 'media_link': {'key': 'mediaLink', 'type': 'str'}, + 'default_configuration_link': {'key': 'defaultConfigurationLink', 'type': 'str'}, } def __init__( self, *, - file_name: str, media_link: str, + default_configuration_link: Optional[str] = None, **kwargs ): super(UserArtifactSource, self).__init__(**kwargs) - self.file_name = file_name self.media_link = media_link + self.default_configuration_link = default_configuration_link class UserAssignedIdentitiesValue(msrest.serialization.Model): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py index 33aa552bb865..2327472a296c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py @@ -3645,7 +3645,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
`:code:`
` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. :type key_data: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py index 5c16c5de040a..599404519acb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py @@ -3985,7 +3985,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
`:code:`
` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. :type key_data: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models.py index 667bbc7c8f1e..cfc8360230b1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models.py @@ -2809,16 +2809,16 @@ def __init__( self.id = None -class PrivateEndpointConnection(ProxyOnlyResource): +class PrivateEndpointConnection(msrest.serialization.Model): """The Private Endpoint Connection resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource Id. + :ivar id: private endpoint connection Id. :vartype id: str - :ivar name: Resource name. + :ivar name: private endpoint connection name. :vartype name: str - :ivar type: Resource type. + :ivar type: private endpoint connection type. :vartype type: str :param private_endpoint: The resource of private end point. :type private_endpoint: ~azure.mgmt.compute.v2020_09_30.models.PrivateEndpoint @@ -2853,6 +2853,9 @@ def __init__( **kwargs ): super(PrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.private_endpoint = kwargs.get('private_endpoint', None) self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) self.provisioning_state = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py index cebfade08f79..690cb2caaf32 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py @@ -3099,16 +3099,16 @@ def __init__( self.id = None -class PrivateEndpointConnection(ProxyOnlyResource): +class PrivateEndpointConnection(msrest.serialization.Model): """The Private Endpoint Connection resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource Id. + :ivar id: private endpoint connection Id. :vartype id: str - :ivar name: Resource name. + :ivar name: private endpoint connection name. :vartype name: str - :ivar type: Resource type. + :ivar type: private endpoint connection type. :vartype type: str :param private_endpoint: The resource of private end point. :type private_endpoint: ~azure.mgmt.compute.v2020_09_30.models.PrivateEndpoint @@ -3146,6 +3146,9 @@ def __init__( **kwargs ): super(PrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.private_endpoint = private_endpoint self.private_link_service_connection_state = private_link_service_connection_state self.provisioning_state = None