Skip to content
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 @@ -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,7 @@
RegistryUsageUnit,
WebhookStatus,
WebhookAction,
CreatedByType,
OS,
RunStatus,
RunType,
Expand Down Expand Up @@ -363,6 +366,7 @@
'SourceUploadDefinition',
'Status',
'StorageAccountProperties',
'SystemData',
'Target',
'Task',
'TaskRun',
Expand Down Expand Up @@ -410,6 +414,7 @@
'RegistryUsageUnit',
'WebhookStatus',
'WebhookAction',
'CreatedByType',
'OS',
'RunStatus',
'RunType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ class WebhookAction(str, Enum):
chart_delete = "chart_delete"


class CreatedByType(str, Enum):

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


class OS(str, Enum):

windows = "Windows"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,18 @@ 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 = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'system_data': {'readonly': True},
}

_attribute_map = {
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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
Expand All @@ -144,6 +155,7 @@ class AgentPool(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'system_data': {'readonly': True},
'provisioning_state': {'readonly': True},
}

Expand All @@ -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'},
Expand Down Expand Up @@ -2168,6 +2181,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
Expand Down Expand Up @@ -2205,6 +2222,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},
Expand All @@ -2218,6 +2236,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'},
Expand Down Expand Up @@ -2446,6 +2465,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'
Expand All @@ -2462,6 +2485,7 @@ class Replication(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'system_data': {'readonly': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
}
Expand All @@ -2472,6 +2496,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'},
}
Expand Down Expand Up @@ -3294,6 +3319,48 @@ 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.CreatedByType
:param last_modified_at: The type of identity that last modified the
resource.
: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 @@ -3363,6 +3430,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
Expand Down Expand Up @@ -3405,6 +3476,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},
'platform': {'required': True},
Expand All @@ -3418,6 +3490,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'},
Expand Down Expand Up @@ -3466,6 +3539,10 @@ class TaskRun(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
Expand All @@ -3490,6 +3567,7 @@ class TaskRun(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'system_data': {'readonly': True},
'provisioning_state': {'readonly': True},
'run_result': {'readonly': True},
}
Expand All @@ -3500,6 +3578,7 @@ class TaskRun(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'},
'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'},
Expand Down Expand Up @@ -4070,6 +4149,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
Expand All @@ -4095,6 +4178,7 @@ class Webhook(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'system_data': {'readonly': True},
'actions': {'required': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -4105,6 +4189,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]'},
Expand Down
Loading