Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
from ._models_py3 import UpgradePolicy
from ._models_py3 import Usage
from ._models_py3 import UsageName
from ._models_py3 import UserArtifactManage
from ._models_py3 import UserArtifactSource
from ._models_py3 import UserAssignedIdentitiesValue
from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput
Expand Down Expand Up @@ -358,6 +359,7 @@
from ._models import UpgradePolicy # type: ignore
from ._models import Usage # type: ignore
from ._models import UsageName # type: ignore
from ._models import UserArtifactManage # type: ignore
from ._models import UserArtifactSource # type: ignore
from ._models import UserAssignedIdentitiesValue # type: ignore
from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore
Expand Down Expand Up @@ -619,6 +621,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactManage',
'UserArtifactSource',
'UserAssignedIdentitiesValue',
'VMScaleSetConvertToSinglePlacementGroupInput',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En
SPECIALIZED = "Specialized" #: Specialized image. Contains already provisioned OS Disk.

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

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


class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase):
"""The publishing profile of a gallery Image Version.
"""The publishing profile of a gallery image version.

Variables are only populated by the server, and will be ignored when sending a request.

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

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


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


class UserArtifactManage(msrest.serialization.Model):
"""UserArtifactManage.

All required parameters must be populated in order to send to Azure.

:param install: Required. Required. The path and arguments to install the gallery application.
This is limited to 4096 characters.
:type install: str
:param remove: Required. Required. The path and arguments to remove the gallery application.
This is limited to 4096 characters.
:type remove: str
:param update: Optional. The path and arguments to update the gallery application. If not
present, then update operation will invoke remove command on the previous version and install
command on the current version of the gallery application. This is limited to 4096 characters.
:type update: str
"""

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

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

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


class UserArtifactSource(msrest.serialization.Model):
"""The source image from which the Image Version is going to be created.

All required parameters must be populated in order to send to Azure.

:param file_name: Required. Required. The fileName of the artifact.
:type file_name: str
:param media_link: Required. Required. The mediaLink of the artifact, must be a readable
storage blob.
storage page blob.
:type media_link: str
:param default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must
be a readable storage page blob.
:type default_configuration_link: str
"""

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

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

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


class UserAssignedIdentitiesValue(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand All @@ -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
"""
Expand All @@ -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'},
}

Expand All @@ -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


Expand Down Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -665,6 +667,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactManage',
'UserArtifactSource',
'UserAssignedIdentitiesValue',
'VMScaleSetConvertToSinglePlacementGroupInput',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading