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

[ReleasePR azure-mgmt-containerregistry] [ACR] [New Api Version] add 2021-06-01-preview #15438

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 @@ -51,6 +51,7 @@
from ._models_py3 import Source
from ._models_py3 import Status
from ._models_py3 import StorageAccountProperties
from ._models_py3 import SystemData
from ._models_py3 import Target
from ._models_py3 import Token
from ._models_py3 import TokenCertificate
Expand Down Expand Up @@ -104,6 +105,7 @@
from ._models import Source
from ._models import Status
from ._models import StorageAccountProperties
from ._models import SystemData
from ._models import Target
from ._models import Token
from ._models import TokenCertificate
Expand Down Expand Up @@ -135,6 +137,8 @@
TrustPolicyType,
WebhookStatus,
WebhookAction,
CreatedByType,
LastModifiedByType,
TokenCertificateName,
TokenPasswordName,
TokenStatus,
Expand Down Expand Up @@ -182,6 +186,7 @@
'Source',
'Status',
'StorageAccountProperties',
'SystemData',
'Target',
'Token',
'TokenCertificate',
Expand Down Expand Up @@ -212,6 +217,8 @@
'TrustPolicyType',
'WebhookStatus',
'WebhookAction',
'CreatedByType',
'LastModifiedByType',
'TokenCertificateName',
'TokenPasswordName',
'TokenStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ class WebhookAction(str, Enum):
chart_delete = "chart_delete"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class LastModifiedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class TokenCertificateName(str, Enum):

certificate1 = "certificate1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,25 +597,32 @@ class ProxyResource(Model):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
}

def __init__(self, **kwargs):
super(ProxyResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.system_data = None


class QuarantinePolicy(Model):
Expand Down Expand Up @@ -1126,6 +1133,10 @@ class ScopeMap(ProxyResource):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
:param description: The user friendly description of the scope map.
:type description: str
:ivar scope_map_type: The type of the scope map. E.g. BuildIn scope map.
Expand All @@ -1148,6 +1159,7 @@ class ScopeMap(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
'scope_map_type': {'readonly': True},
'creation_date': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -1158,6 +1170,7 @@ class ScopeMap(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'description': {'key': 'properties.description', 'type': 'str'},
'scope_map_type': {'key': 'properties.type', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
Expand Down Expand Up @@ -1313,6 +1326,47 @@ def __init__(self, **kwargs):
self.id = kwargs.get('id', None)


class SystemData(Model):
"""Metadata pertaining to creation and last modification of the resource.

:param created_by: The identity that created the resource.
:type created_by: str
:param created_by_type: The type of identity that created the resource.
Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
:type created_by_type: str or
~azure.mgmt.containerregistry.v2019_05_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the
resource. Possible values include: 'User', 'Application',
'ManagedIdentity', 'Key'
:type last_modified_by_type: str or
~azure.mgmt.containerregistry.v2019_05_01_preview.models.LastModifiedByType
:param last_modified_at: The timestamp of resource modification (UTC).
:type last_modified_at: datetime
"""

_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'str'},
'created_by_type': {'key': 'createdByType', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'iso-8601'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'},
'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'},
}

def __init__(self, **kwargs):
super(SystemData, self).__init__(**kwargs)
self.created_by = kwargs.get('created_by', None)
self.created_by_type = kwargs.get('created_by_type', None)
self.created_at = kwargs.get('created_at', None)
self.last_modified_by = kwargs.get('last_modified_by', None)
self.last_modified_by_type = kwargs.get('last_modified_by_type', None)
self.last_modified_at = kwargs.get('last_modified_at', None)


class Target(Model):
"""The target of the event.

Expand Down Expand Up @@ -1374,6 +1428,10 @@ class Token(ProxyResource):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
:ivar creation_date: The creation date of scope map.
:vartype creation_date: datetime
:ivar provisioning_state: Provisioning state of the resource. Possible
Expand All @@ -1398,6 +1456,7 @@ class Token(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
'creation_date': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -1406,6 +1465,7 @@ class Token(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'scope_map_id': {'key': 'properties.scopeMapId', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,25 +597,32 @@ class ProxyResource(Model):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
}

def __init__(self, **kwargs) -> None:
super(ProxyResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.system_data = None


class QuarantinePolicy(Model):
Expand Down Expand Up @@ -1126,6 +1133,10 @@ class ScopeMap(ProxyResource):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
:param description: The user friendly description of the scope map.
:type description: str
:ivar scope_map_type: The type of the scope map. E.g. BuildIn scope map.
Expand All @@ -1148,6 +1159,7 @@ class ScopeMap(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
'scope_map_type': {'readonly': True},
'creation_date': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -1158,6 +1170,7 @@ class ScopeMap(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'description': {'key': 'properties.description', 'type': 'str'},
'scope_map_type': {'key': 'properties.type', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
Expand Down Expand Up @@ -1313,6 +1326,47 @@ def __init__(self, *, id: str, **kwargs) -> None:
self.id = id


class SystemData(Model):
"""Metadata pertaining to creation and last modification of the resource.

:param created_by: The identity that created the resource.
:type created_by: str
:param created_by_type: The type of identity that created the resource.
Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
:type created_by_type: str or
~azure.mgmt.containerregistry.v2019_05_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the
resource. Possible values include: 'User', 'Application',
'ManagedIdentity', 'Key'
:type last_modified_by_type: str or
~azure.mgmt.containerregistry.v2019_05_01_preview.models.LastModifiedByType
:param last_modified_at: The timestamp of resource modification (UTC).
:type last_modified_at: datetime
"""

_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'str'},
'created_by_type': {'key': 'createdByType', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'iso-8601'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'},
'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'},
}

def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None:
super(SystemData, self).__init__(**kwargs)
self.created_by = created_by
self.created_by_type = created_by_type
self.created_at = created_at
self.last_modified_by = last_modified_by
self.last_modified_by_type = last_modified_by_type
self.last_modified_at = last_modified_at


class Target(Model):
"""The target of the event.

Expand Down Expand Up @@ -1374,6 +1428,10 @@ class Token(ProxyResource):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar system_data: Metadata pertaining to creation and last modification
of the resource.
:vartype system_data:
~azure.mgmt.containerregistry.v2019_05_01_preview.models.SystemData
:ivar creation_date: The creation date of scope map.
:vartype creation_date: datetime
:ivar provisioning_state: Provisioning state of the resource. Possible
Expand All @@ -1398,6 +1456,7 @@ class Token(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
'creation_date': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -1406,6 +1465,7 @@ class Token(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'scope_map_id': {'key': 'properties.scopeMapId', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
from ._models_py3 import SourceUploadDefinition
from ._models_py3 import Status
from ._models_py3 import StorageAccountProperties
from ._models_py3 import SystemData
from ._models_py3 import Target
from ._models_py3 import Task
from ._models_py3 import TaskRun
Expand Down Expand Up @@ -207,6 +208,7 @@
from ._models import SourceUploadDefinition
from ._models import Status
from ._models import StorageAccountProperties
from ._models import SystemData
from ._models import Target
from ._models import Task
from ._models import TaskRun
Expand Down Expand Up @@ -255,6 +257,8 @@
RegistryUsageUnit,
WebhookStatus,
WebhookAction,
CreatedByType,
LastModifiedByType,
OS,
RunStatus,
RunType,
Expand Down Expand Up @@ -363,6 +367,7 @@
'SourceUploadDefinition',
'Status',
'StorageAccountProperties',
'SystemData',
'Target',
'Task',
'TaskRun',
Expand Down Expand Up @@ -410,6 +415,8 @@
'RegistryUsageUnit',
'WebhookStatus',
'WebhookAction',
'CreatedByType',
'LastModifiedByType',
'OS',
'RunStatus',
'RunType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ class WebhookAction(str, Enum):
chart_delete = "chart_delete"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class LastModifiedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class OS(str, Enum):

windows = "Windows"
Expand Down
Loading