diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/__init__.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/__init__.py index 440e9ab7135b..466c6f01b952 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/__init__.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/__init__.py @@ -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 @@ -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 @@ -135,6 +137,8 @@ TrustPolicyType, WebhookStatus, WebhookAction, + CreatedByType, + LastModifiedByType, TokenCertificateName, TokenPasswordName, TokenStatus, @@ -182,6 +186,7 @@ 'Source', 'Status', 'StorageAccountProperties', + 'SystemData', 'Target', 'Token', 'TokenCertificate', @@ -212,6 +217,8 @@ 'TrustPolicyType', 'WebhookStatus', 'WebhookAction', + 'CreatedByType', + 'LastModifiedByType', 'TokenCertificateName', 'TokenPasswordName', 'TokenStatus', diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_container_registry_management_client_enums.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_container_registry_management_client_enums.py index 930aa7ee58a1..f183ca356903 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_container_registry_management_client_enums.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_container_registry_management_client_enums.py @@ -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" diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models.py index 14d48ff950c9..552e9dbf4c60 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models.py @@ -597,18 +597,24 @@ 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): @@ -616,6 +622,7 @@ def __init__(self, **kwargs): self.id = None self.name = None self.type = None + self.system_data = None class QuarantinePolicy(Model): @@ -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. @@ -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}, @@ -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'}, @@ -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. @@ -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 @@ -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}, } @@ -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'}, diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models_py3.py index e2fb4271e743..6ad6b33af93e 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/_models_py3.py @@ -597,18 +597,24 @@ 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: @@ -616,6 +622,7 @@ def __init__(self, **kwargs) -> None: self.id = None self.name = None self.type = None + self.system_data = None class QuarantinePolicy(Model): @@ -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. @@ -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}, @@ -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'}, @@ -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. @@ -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 @@ -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}, } @@ -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'}, diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/__init__.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/__init__.py index fb0d40dcf547..0bd2f268902a 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/__init__.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/__init__.py @@ -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 @@ -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 @@ -255,6 +257,8 @@ RegistryUsageUnit, WebhookStatus, WebhookAction, + CreatedByType, + LastModifiedByType, OS, RunStatus, RunType, @@ -363,6 +367,7 @@ 'SourceUploadDefinition', 'Status', 'StorageAccountProperties', + 'SystemData', 'Target', 'Task', 'TaskRun', @@ -410,6 +415,8 @@ 'RegistryUsageUnit', 'WebhookStatus', 'WebhookAction', + 'CreatedByType', + 'LastModifiedByType', 'OS', 'RunStatus', 'RunType', diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py index 63e6bb6d8314..cbf1367c48b2 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py @@ -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" diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py index 1ce8a4643201..115621584597 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py @@ -75,6 +75,10 @@ class Resource(Model): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData """ _validation = { @@ -82,6 +86,7 @@ class Resource(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { @@ -90,6 +95,7 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, **kwargs): @@ -99,6 +105,7 @@ def __init__(self, **kwargs): self.type = None self.location = kwargs.get('location', None) self.tags = kwargs.get('tags', None) + self.system_data = None class AgentPool(Resource): @@ -121,6 +128,10 @@ class AgentPool(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param count: The count of agent machine :type count: int :param tier: The Tier of agent machine @@ -144,6 +155,7 @@ class AgentPool(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -153,6 +165,7 @@ class AgentPool(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'count': {'key': 'properties.count', 'type': 'int'}, 'tier': {'key': 'properties.tier', 'type': 'str'}, 'os': {'key': 'properties.os', 'type': 'str'}, @@ -2101,18 +2114,24 @@ 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_06_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): @@ -2120,6 +2139,7 @@ def __init__(self, **kwargs): self.id = None self.name = None self.type = None + self.system_data = None class QuarantinePolicy(Model): @@ -2185,6 +2205,10 @@ class Registry(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param sku: Required. The SKU of the container registry. :type sku: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.Sku :ivar login_server: The URL that can be used to log into the container @@ -2222,6 +2246,7 @@ class Registry(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'sku': {'required': True}, 'login_server': {'readonly': True}, 'creation_date': {'readonly': True}, @@ -2235,6 +2260,7 @@ class Registry(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'login_server': {'key': 'properties.loginServer', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -2463,6 +2489,10 @@ class Replication(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -2479,6 +2509,7 @@ class Replication(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, } @@ -2489,6 +2520,7 @@ class Replication(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, } @@ -2597,6 +2629,10 @@ class Run(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_06_01_preview.models.SystemData :param run_id: The unique identifier for the run. :type run_id: str :param status: The current status of the run. Possible values include: @@ -2669,6 +2705,7 @@ class Run(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'run_error_message': {'readonly': True}, 'log_artifact': {'readonly': True}, } @@ -2677,6 +2714,7 @@ class Run(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'run_id': {'key': 'properties.runId', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, @@ -2836,6 +2874,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_06_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. @@ -2858,6 +2900,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}, @@ -2868,6 +2911,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'}, @@ -3322,6 +3366,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_06_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_06_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. @@ -3391,6 +3476,10 @@ class Task(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties @@ -3439,6 +3528,7 @@ class Task(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, @@ -3450,6 +3540,7 @@ class Task(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -3495,6 +3586,10 @@ class TaskRun(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_06_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties @@ -3520,6 +3615,7 @@ class TaskRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'run_result': {'readonly': True}, } @@ -3528,6 +3624,7 @@ class TaskRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'}, @@ -3790,6 +3887,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_06_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 @@ -3814,6 +3915,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}, } @@ -3822,6 +3924,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'}, @@ -4113,6 +4216,10 @@ class Webhook(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param status: The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled' :type status: str or @@ -4138,6 +4245,7 @@ class Webhook(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'actions': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -4148,6 +4256,7 @@ class Webhook(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'actions': {'key': 'properties.actions', 'type': '[str]'}, diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py index a263211ab49e..d9bbf59bb82b 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py @@ -75,6 +75,10 @@ class Resource(Model): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData """ _validation = { @@ -82,6 +86,7 @@ class Resource(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { @@ -90,6 +95,7 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, *, location: str, tags=None, **kwargs) -> None: @@ -99,6 +105,7 @@ def __init__(self, *, location: str, tags=None, **kwargs) -> None: self.type = None self.location = location self.tags = tags + self.system_data = None class AgentPool(Resource): @@ -121,6 +128,10 @@ class AgentPool(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param count: The count of agent machine :type count: int :param tier: The Tier of agent machine @@ -144,6 +155,7 @@ class AgentPool(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -153,6 +165,7 @@ class AgentPool(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'count': {'key': 'properties.count', 'type': 'int'}, 'tier': {'key': 'properties.tier', 'type': 'str'}, 'os': {'key': 'properties.os', 'type': 'str'}, @@ -2101,18 +2114,24 @@ 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_06_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: @@ -2120,6 +2139,7 @@ def __init__(self, **kwargs) -> None: self.id = None self.name = None self.type = None + self.system_data = None class QuarantinePolicy(Model): @@ -2185,6 +2205,10 @@ class Registry(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param sku: Required. The SKU of the container registry. :type sku: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.Sku :ivar login_server: The URL that can be used to log into the container @@ -2222,6 +2246,7 @@ class Registry(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'sku': {'required': True}, 'login_server': {'readonly': True}, 'creation_date': {'readonly': True}, @@ -2235,6 +2260,7 @@ class Registry(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'login_server': {'key': 'properties.loginServer', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -2463,6 +2489,10 @@ class Replication(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -2479,6 +2509,7 @@ class Replication(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, } @@ -2489,6 +2520,7 @@ class Replication(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, } @@ -2597,6 +2629,10 @@ class Run(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_06_01_preview.models.SystemData :param run_id: The unique identifier for the run. :type run_id: str :param status: The current status of the run. Possible values include: @@ -2669,6 +2705,7 @@ class Run(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'run_error_message': {'readonly': True}, 'log_artifact': {'readonly': True}, } @@ -2677,6 +2714,7 @@ class Run(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'run_id': {'key': 'properties.runId', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, @@ -2836,6 +2874,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_06_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. @@ -2858,6 +2900,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}, @@ -2868,6 +2911,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'}, @@ -3322,6 +3366,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_06_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_06_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. @@ -3391,6 +3476,10 @@ class Task(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties @@ -3439,6 +3528,7 @@ class Task(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, @@ -3450,6 +3540,7 @@ class Task(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -3495,6 +3586,10 @@ class TaskRun(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_06_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties @@ -3520,6 +3615,7 @@ class TaskRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'run_result': {'readonly': True}, } @@ -3528,6 +3624,7 @@ class TaskRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'}, @@ -3790,6 +3887,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_06_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 @@ -3814,6 +3915,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}, } @@ -3822,6 +3924,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'}, @@ -4113,6 +4216,10 @@ class Webhook(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData :param status: The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled' :type status: str or @@ -4138,6 +4245,7 @@ class Webhook(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'actions': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -4148,6 +4256,7 @@ class Webhook(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'actions': {'key': 'properties.actions', 'type': '[str]'}, diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/__init__.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/__init__.py index 4ffe02bc13cd..2de8ce1f91ae 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/__init__.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/__init__.py @@ -116,6 +116,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 @@ -247,6 +248,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 @@ -291,6 +293,8 @@ ResourceIdentityType, PipelineOptions, ProvisioningState, + CreatedByType, + LastModifiedByType, ImportMode, PipelineSourceType, TriggerStatus, @@ -436,6 +440,7 @@ 'SourceUploadDefinition', 'Status', 'StorageAccountProperties', + 'SystemData', 'Target', 'Task', 'TaskRun', @@ -479,6 +484,8 @@ 'ResourceIdentityType', 'PipelineOptions', 'ProvisioningState', + 'CreatedByType', + 'LastModifiedByType', 'ImportMode', 'PipelineSourceType', 'TriggerStatus', diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_container_registry_management_client_enums.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_container_registry_management_client_enums.py index 0b364845701d..268567c5d4c0 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_container_registry_management_client_enums.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_container_registry_management_client_enums.py @@ -38,6 +38,22 @@ class ProvisioningState(str, Enum): canceled = "Canceled" +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 ImportMode(str, Enum): no_force = "NoForce" diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py index c36414f82589..cf1811c5377e 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py @@ -75,6 +75,10 @@ class Resource(Model): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData """ _validation = { @@ -82,6 +86,7 @@ class Resource(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { @@ -90,6 +95,7 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, **kwargs): @@ -99,6 +105,7 @@ def __init__(self, **kwargs): self.type = None self.location = kwargs.get('location', None) self.tags = kwargs.get('tags', None) + self.system_data = None class AgentPool(Resource): @@ -121,6 +128,10 @@ class AgentPool(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param count: The count of agent machine :type count: int :param tier: The Tier of agent machine @@ -144,6 +155,7 @@ class AgentPool(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -153,6 +165,7 @@ class AgentPool(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'count': {'key': 'properties.count', 'type': 'int'}, 'tier': {'key': 'properties.tier', 'type': 'str'}, 'os': {'key': 'properties.os', 'type': 'str'}, @@ -1349,18 +1362,24 @@ 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_12_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): @@ -1368,6 +1387,7 @@ def __init__(self, **kwargs): self.id = None self.name = None self.type = None + self.system_data = None class ExportPipeline(ProxyResource): @@ -1384,6 +1404,10 @@ class ExportPipeline(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_12_01_preview.models.SystemData :param location: The location of the export pipeline. :type location: str :param identity: The identity of the export pipeline. @@ -1406,6 +1430,7 @@ class ExportPipeline(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'target': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -1414,6 +1439,7 @@ class ExportPipeline(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'target': {'key': 'properties.target', 'type': 'ExportPipelineTargetProperties'}, @@ -1841,6 +1867,10 @@ class ImportPipeline(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_12_01_preview.models.SystemData :param location: The location of the import pipeline. :type location: str :param identity: The identity of the import pipeline. @@ -1867,6 +1897,7 @@ class ImportPipeline(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'source': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -1875,6 +1906,7 @@ class ImportPipeline(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'source': {'key': 'properties.source', 'type': 'ImportPipelineSourceProperties'}, @@ -2074,16 +2106,26 @@ class KeyVaultProperties(Model): :param identity: The client id of the identity which will be used to access key vault. :type identity: str + :ivar key_rotation_enabled: Auto key rotation status for a CMK enabled + registry. + :vartype key_rotation_enabled: bool + :ivar last_key_rotation_timestamp: Timestamp of the last successful key + rotation. + :vartype last_key_rotation_timestamp: datetime """ _validation = { 'versioned_key_identifier': {'readonly': True}, + 'key_rotation_enabled': {'readonly': True}, + 'last_key_rotation_timestamp': {'readonly': True}, } _attribute_map = { 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'}, 'versioned_key_identifier': {'key': 'versionedKeyIdentifier', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'str'}, + 'key_rotation_enabled': {'key': 'keyRotationEnabled', 'type': 'bool'}, + 'last_key_rotation_timestamp': {'key': 'lastKeyRotationTimestamp', 'type': 'iso-8601'}, } def __init__(self, **kwargs): @@ -2091,6 +2133,8 @@ def __init__(self, **kwargs): self.key_identifier = kwargs.get('key_identifier', None) self.versioned_key_identifier = None self.identity = kwargs.get('identity', None) + self.key_rotation_enabled = None + self.last_key_rotation_timestamp = None class NetworkRuleSet(Model): @@ -2296,6 +2340,10 @@ class PipelineRun(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_12_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of a pipeline run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -2316,6 +2364,7 @@ class PipelineRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'response': {'readonly': True}, } @@ -2324,6 +2373,7 @@ class PipelineRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'request': {'key': 'properties.request', 'type': 'PipelineRunRequest'}, 'response': {'key': 'properties.response', 'type': 'PipelineRunResponse'}, @@ -2678,6 +2728,10 @@ class PrivateEndpointConnection(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_12_01_preview.models.SystemData :param private_endpoint: The resource of private endpoint. :type private_endpoint: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.PrivateEndpoint @@ -2696,6 +2750,7 @@ class PrivateEndpointConnection(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2703,6 +2758,7 @@ class PrivateEndpointConnection(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -2868,6 +2924,10 @@ class Registry(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param sku: Required. The SKU of the container registry. :type sku: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.Sku :param identity: The identity of the container registry. @@ -2926,6 +2986,7 @@ class Registry(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'sku': {'required': True}, 'login_server': {'readonly': True}, 'creation_date': {'readonly': True}, @@ -2941,6 +3002,7 @@ class Registry(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'login_server': {'key': 'properties.loginServer', 'type': 'str'}, @@ -3203,6 +3265,10 @@ class Replication(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -3224,6 +3290,7 @@ class Replication(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, } @@ -3234,6 +3301,7 @@ class Replication(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, @@ -3351,6 +3419,10 @@ class Run(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_12_01_preview.models.SystemData :param run_id: The unique identifier for the run. :type run_id: str :param status: The current status of the run. Possible values include: @@ -3423,6 +3495,7 @@ class Run(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'run_error_message': {'readonly': True}, 'log_artifact': {'readonly': True}, } @@ -3431,6 +3504,7 @@ class Run(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'run_id': {'key': 'properties.runId', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, @@ -3590,6 +3664,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_12_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. @@ -3612,6 +3690,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}, @@ -3622,6 +3701,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'}, @@ -4076,6 +4156,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_12_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_12_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. @@ -4145,6 +4266,10 @@ class Task(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.IdentityProperties @@ -4193,6 +4318,7 @@ class Task(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, @@ -4204,6 +4330,7 @@ class Task(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -4249,6 +4376,10 @@ class TaskRun(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_12_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.IdentityProperties @@ -4274,6 +4405,7 @@ class TaskRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'run_result': {'readonly': True}, } @@ -4282,6 +4414,7 @@ class TaskRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'}, @@ -4544,6 +4677,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_12_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 @@ -4568,6 +4705,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}, } @@ -4576,6 +4714,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'}, @@ -4867,6 +5006,10 @@ class Webhook(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param status: The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled' :type status: str or @@ -4892,6 +5035,7 @@ class Webhook(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'actions': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -4902,6 +5046,7 @@ class Webhook(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'actions': {'key': 'properties.actions', 'type': '[str]'}, diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py index 8361615bf7fb..81a4b6981ce6 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py @@ -75,6 +75,10 @@ class Resource(Model): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData """ _validation = { @@ -82,6 +86,7 @@ class Resource(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { @@ -90,6 +95,7 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, *, location: str, tags=None, **kwargs) -> None: @@ -99,6 +105,7 @@ def __init__(self, *, location: str, tags=None, **kwargs) -> None: self.type = None self.location = location self.tags = tags + self.system_data = None class AgentPool(Resource): @@ -121,6 +128,10 @@ class AgentPool(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param count: The count of agent machine :type count: int :param tier: The Tier of agent machine @@ -144,6 +155,7 @@ class AgentPool(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -153,6 +165,7 @@ class AgentPool(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'count': {'key': 'properties.count', 'type': 'int'}, 'tier': {'key': 'properties.tier', 'type': 'str'}, 'os': {'key': 'properties.os', 'type': 'str'}, @@ -1349,18 +1362,24 @@ 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_12_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: @@ -1368,6 +1387,7 @@ def __init__(self, **kwargs) -> None: self.id = None self.name = None self.type = None + self.system_data = None class ExportPipeline(ProxyResource): @@ -1384,6 +1404,10 @@ class ExportPipeline(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_12_01_preview.models.SystemData :param location: The location of the export pipeline. :type location: str :param identity: The identity of the export pipeline. @@ -1406,6 +1430,7 @@ class ExportPipeline(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'target': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -1414,6 +1439,7 @@ class ExportPipeline(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'target': {'key': 'properties.target', 'type': 'ExportPipelineTargetProperties'}, @@ -1841,6 +1867,10 @@ class ImportPipeline(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_12_01_preview.models.SystemData :param location: The location of the import pipeline. :type location: str :param identity: The identity of the import pipeline. @@ -1867,6 +1897,7 @@ class ImportPipeline(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'source': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -1875,6 +1906,7 @@ class ImportPipeline(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'source': {'key': 'properties.source', 'type': 'ImportPipelineSourceProperties'}, @@ -2074,16 +2106,26 @@ class KeyVaultProperties(Model): :param identity: The client id of the identity which will be used to access key vault. :type identity: str + :ivar key_rotation_enabled: Auto key rotation status for a CMK enabled + registry. + :vartype key_rotation_enabled: bool + :ivar last_key_rotation_timestamp: Timestamp of the last successful key + rotation. + :vartype last_key_rotation_timestamp: datetime """ _validation = { 'versioned_key_identifier': {'readonly': True}, + 'key_rotation_enabled': {'readonly': True}, + 'last_key_rotation_timestamp': {'readonly': True}, } _attribute_map = { 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'}, 'versioned_key_identifier': {'key': 'versionedKeyIdentifier', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'str'}, + 'key_rotation_enabled': {'key': 'keyRotationEnabled', 'type': 'bool'}, + 'last_key_rotation_timestamp': {'key': 'lastKeyRotationTimestamp', 'type': 'iso-8601'}, } def __init__(self, *, key_identifier: str=None, identity: str=None, **kwargs) -> None: @@ -2091,6 +2133,8 @@ def __init__(self, *, key_identifier: str=None, identity: str=None, **kwargs) -> self.key_identifier = key_identifier self.versioned_key_identifier = None self.identity = identity + self.key_rotation_enabled = None + self.last_key_rotation_timestamp = None class NetworkRuleSet(Model): @@ -2296,6 +2340,10 @@ class PipelineRun(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_12_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of a pipeline run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -2316,6 +2364,7 @@ class PipelineRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'response': {'readonly': True}, } @@ -2324,6 +2373,7 @@ class PipelineRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'request': {'key': 'properties.request', 'type': 'PipelineRunRequest'}, 'response': {'key': 'properties.response', 'type': 'PipelineRunResponse'}, @@ -2678,6 +2728,10 @@ class PrivateEndpointConnection(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_12_01_preview.models.SystemData :param private_endpoint: The resource of private endpoint. :type private_endpoint: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.PrivateEndpoint @@ -2696,6 +2750,7 @@ class PrivateEndpointConnection(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2703,6 +2758,7 @@ class PrivateEndpointConnection(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -2868,6 +2924,10 @@ class Registry(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param sku: Required. The SKU of the container registry. :type sku: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.Sku :param identity: The identity of the container registry. @@ -2926,6 +2986,7 @@ class Registry(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'sku': {'required': True}, 'login_server': {'readonly': True}, 'creation_date': {'readonly': True}, @@ -2941,6 +3002,7 @@ class Registry(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'login_server': {'key': 'properties.loginServer', 'type': 'str'}, @@ -3203,6 +3265,10 @@ class Replication(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :ivar provisioning_state: The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' @@ -3224,6 +3290,7 @@ class Replication(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, } @@ -3234,6 +3301,7 @@ class Replication(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, @@ -3351,6 +3419,10 @@ class Run(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_12_01_preview.models.SystemData :param run_id: The unique identifier for the run. :type run_id: str :param status: The current status of the run. Possible values include: @@ -3423,6 +3495,7 @@ class Run(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'run_error_message': {'readonly': True}, 'log_artifact': {'readonly': True}, } @@ -3431,6 +3504,7 @@ class Run(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'run_id': {'key': 'properties.runId', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, @@ -3590,6 +3664,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_12_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. @@ -3612,6 +3690,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}, @@ -3622,6 +3701,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'}, @@ -4076,6 +4156,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_12_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_12_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. @@ -4145,6 +4266,10 @@ class Task(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.IdentityProperties @@ -4193,6 +4318,7 @@ class Task(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, @@ -4204,6 +4330,7 @@ class Task(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, @@ -4249,6 +4376,10 @@ class TaskRun(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_12_01_preview.models.SystemData :param identity: Identity for the resource. :type identity: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.IdentityProperties @@ -4274,6 +4405,7 @@ class TaskRun(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'run_result': {'readonly': True}, } @@ -4282,6 +4414,7 @@ class TaskRun(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'}, @@ -4544,6 +4677,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_12_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 @@ -4568,6 +4705,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}, } @@ -4576,6 +4714,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'}, @@ -4867,6 +5006,10 @@ class Webhook(Resource): :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.SystemData :param status: The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled' :type status: str or @@ -4892,6 +5035,7 @@ class Webhook(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'actions': {'required': True}, 'provisioning_state': {'readonly': True}, } @@ -4902,6 +5046,7 @@ class Webhook(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'actions': {'key': 'properties.actions', 'type': '[str]'},