Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-compute] Fix DiskRP Swagger "Type doesn't exist in PrivateEndpointConnection" error #3795

Closed
Closed
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 @@ -132,6 +132,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 VaultCertificate
from ._models_py3 import VaultSecretGroup
Expand Down Expand Up @@ -323,6 +324,7 @@
from ._models import UpgradePolicy
from ._models import Usage
from ._models import UsageName
from ._models import UserArtifactManage
from ._models import UserArtifactSource
from ._models import VaultCertificate
from ._models import VaultSecretGroup
Expand Down Expand Up @@ -581,6 +583,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactManage',
'UserArtifactSource',
'VaultCertificate',
'VaultSecretGroup',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ def __init__(self, **kwargs):


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 Down Expand Up @@ -1793,9 +1793,9 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil
~azure.mgmt.compute.v2019_03_01.models.StorageAccountType
:param source: Required.
: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 @@ -1814,14 +1814,14 @@ 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'},
}

def __init__(self, **kwargs):
super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
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 @@ -4864,32 +4864,68 @@ def __init__(self, **kwargs):
self.localized_value = kwargs.get('localized_value', None)


class UserArtifactManage(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.get('install', None)
self.remove = kwargs.get('remove', None)
self.update = kwargs.get('update', None)


class UserArtifactSource(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.
be a readable 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.get('file_name', None)
self.media_link = kwargs.get('media_link', None)
self.default_configuration_link = kwargs.get('default_configuration_link', None)


class VaultCertificate(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ def __init__(self, *, target_regions=None, replica_count: int=None, exclude_from


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 Down Expand Up @@ -1793,9 +1793,9 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil
~azure.mgmt.compute.v2019_03_01.models.StorageAccountType
:param source: Required.
: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 @@ -1814,14 +1814,14 @@ 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'},
}

def __init__(self, *, source, target_regions=None, replica_count: int=None, exclude_from_latest: bool=None, end_of_life_date=None, storage_account_type=None, content_type: str=None, enable_health_check: bool=None, **kwargs) -> None:
def __init__(self, *, source, target_regions=None, replica_count: int=None, exclude_from_latest: bool=None, end_of_life_date=None, storage_account_type=None, manage_actions=None, enable_health_check: bool=None, **kwargs) -> None:
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 @@ -4864,32 +4864,68 @@ def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> N
self.localized_value = localized_value


class UserArtifactManage(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: str=None, **kwargs) -> None:
super(UserArtifactManage, self).__init__(**kwargs)
self.install = install
self.remove = remove
self.update = update


class UserArtifactSource(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.
be a readable 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, **kwargs) -> None:
def __init__(self, *, media_link: str, default_configuration_link: str=None, **kwargs) -> None:
super(UserArtifactSource, self).__init__(**kwargs)
self.file_name = file_name
self.media_link = media_link
self.default_configuration_link = default_configuration_link


class VaultCertificate(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,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 VaultCertificate
from ._models_py3 import VaultSecretGroup
Expand Down Expand Up @@ -350,6 +351,7 @@
from ._models import UpgradePolicy
from ._models import Usage
from ._models import UsageName
from ._models import UserArtifactManage
from ._models import UserArtifactSource
from ._models import VaultCertificate
from ._models import VaultSecretGroup
Expand Down Expand Up @@ -625,6 +627,7 @@
'UpgradePolicy',
'Usage',
'UsageName',
'UserArtifactManage',
'UserArtifactSource',
'VaultCertificate',
'VaultSecretGroup',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ def __init__(self, **kwargs):


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 Down Expand Up @@ -2062,9 +2062,9 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil
~azure.mgmt.compute.v2019_07_01.models.StorageAccountType
:param source: Required.
: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
Expand All @@ -2083,14 +2083,14 @@ 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'},
}

def __init__(self, **kwargs):
super(GalleryApplicationVersionPublishingProfile, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
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 @@ -5490,32 +5490,68 @@ def __init__(self, **kwargs):
self.localized_value = kwargs.get('localized_value', None)


class UserArtifactManage(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.get('install', None)
self.remove = kwargs.get('remove', None)
self.update = kwargs.get('update', None)


class UserArtifactSource(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.
be a readable 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.get('file_name', None)
self.media_link = kwargs.get('media_link', None)
self.default_configuration_link = kwargs.get('default_configuration_link', None)


class VaultCertificate(Model):
Expand Down
Loading