diff --git a/azure-eventgrid/azure/eventgrid/models/__init__.py b/azure-eventgrid/azure/eventgrid/models/__init__.py index 467e14415101..5358d5364cc6 100644 --- a/azure-eventgrid/azure/eventgrid/models/__init__.py +++ b/azure-eventgrid/azure/eventgrid/models/__init__.py @@ -40,11 +40,15 @@ from .device_connection_state_event_properties_py3 import DeviceConnectionStateEventProperties from .container_registry_image_pushed_event_data_py3 import ContainerRegistryImagePushedEventData from .container_registry_image_deleted_event_data_py3 import ContainerRegistryImageDeletedEventData + from .container_registry_chart_pushed_event_data_py3 import ContainerRegistryChartPushedEventData + from .container_registry_chart_deleted_event_data_py3 import ContainerRegistryChartDeletedEventData from .container_registry_event_target_py3 import ContainerRegistryEventTarget from .container_registry_event_request_py3 import ContainerRegistryEventRequest from .container_registry_event_actor_py3 import ContainerRegistryEventActor from .container_registry_event_source_py3 import ContainerRegistryEventSource from .container_registry_event_data_py3 import ContainerRegistryEventData + from .container_registry_artifact_event_target_py3 import ContainerRegistryArtifactEventTarget + from .container_registry_artifact_event_data_py3 import ContainerRegistryArtifactEventData from .service_bus_active_messages_available_with_no_listeners_event_data_py3 import ServiceBusActiveMessagesAvailableWithNoListenersEventData from .service_bus_deadletter_messages_available_with_no_listeners_event_data_py3 import ServiceBusDeadletterMessagesAvailableWithNoListenersEventData from .media_job_state_change_event_data_py3 import MediaJobStateChangeEventData @@ -106,11 +110,15 @@ from .device_connection_state_event_properties import DeviceConnectionStateEventProperties from .container_registry_image_pushed_event_data import ContainerRegistryImagePushedEventData from .container_registry_image_deleted_event_data import ContainerRegistryImageDeletedEventData + from .container_registry_chart_pushed_event_data import ContainerRegistryChartPushedEventData + from .container_registry_chart_deleted_event_data import ContainerRegistryChartDeletedEventData from .container_registry_event_target import ContainerRegistryEventTarget from .container_registry_event_request import ContainerRegistryEventRequest from .container_registry_event_actor import ContainerRegistryEventActor from .container_registry_event_source import ContainerRegistryEventSource from .container_registry_event_data import ContainerRegistryEventData + from .container_registry_artifact_event_target import ContainerRegistryArtifactEventTarget + from .container_registry_artifact_event_data import ContainerRegistryArtifactEventData from .service_bus_active_messages_available_with_no_listeners_event_data import ServiceBusActiveMessagesAvailableWithNoListenersEventData from .service_bus_deadletter_messages_available_with_no_listeners_event_data import ServiceBusDeadletterMessagesAvailableWithNoListenersEventData from .media_job_state_change_event_data import MediaJobStateChangeEventData @@ -179,11 +187,15 @@ 'DeviceConnectionStateEventProperties', 'ContainerRegistryImagePushedEventData', 'ContainerRegistryImageDeletedEventData', + 'ContainerRegistryChartPushedEventData', + 'ContainerRegistryChartDeletedEventData', 'ContainerRegistryEventTarget', 'ContainerRegistryEventRequest', 'ContainerRegistryEventActor', 'ContainerRegistryEventSource', 'ContainerRegistryEventData', + 'ContainerRegistryArtifactEventTarget', + 'ContainerRegistryArtifactEventData', 'ServiceBusActiveMessagesAvailableWithNoListenersEventData', 'ServiceBusDeadletterMessagesAvailableWithNoListenersEventData', 'MediaJobStateChangeEventData', diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data.py b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data.py new file mode 100644 index 000000000000..464d9ede7215 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerRegistryArtifactEventData(Model): + """The content of the event request message. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, **kwargs): + super(ContainerRegistryArtifactEventData, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.timestamp = kwargs.get('timestamp', None) + self.action = kwargs.get('action', None) + self.target = kwargs.get('target', None) diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data_py3.py new file mode 100644 index 000000000000..abd508e82b8e --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_data_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerRegistryArtifactEventData(Model): + """The content of the event request message. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, *, id: str=None, timestamp=None, action: str=None, target=None, **kwargs) -> None: + super(ContainerRegistryArtifactEventData, self).__init__(**kwargs) + self.id = id + self.timestamp = timestamp + self.action = action + self.target = target diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target.py b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target.py new file mode 100644 index 000000000000..661b8c55564a --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerRegistryArtifactEventTarget(Model): + """The target of the event. + + :param media_type: The MIME type of the artifact. + :type media_type: str + :param size: The size in bytes of the artifact. + :type size: long + :param digest: The digest of the artifact. + :type digest: str + :param repository: The repository name of the artifact. + :type repository: str + :param tag: The tag of the artifact. + :type tag: str + :param name: The name of the artifact. + :type name: str + :param version: The version of the artifact. + :type version: str + """ + + _attribute_map = { + 'media_type': {'key': 'mediaType', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'digest': {'key': 'digest', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerRegistryArtifactEventTarget, self).__init__(**kwargs) + self.media_type = kwargs.get('media_type', None) + self.size = kwargs.get('size', None) + self.digest = kwargs.get('digest', None) + self.repository = kwargs.get('repository', None) + self.tag = kwargs.get('tag', None) + self.name = kwargs.get('name', None) + self.version = kwargs.get('version', None) diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target_py3.py b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target_py3.py new file mode 100644 index 000000000000..1acf124735a7 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_artifact_event_target_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerRegistryArtifactEventTarget(Model): + """The target of the event. + + :param media_type: The MIME type of the artifact. + :type media_type: str + :param size: The size in bytes of the artifact. + :type size: long + :param digest: The digest of the artifact. + :type digest: str + :param repository: The repository name of the artifact. + :type repository: str + :param tag: The tag of the artifact. + :type tag: str + :param name: The name of the artifact. + :type name: str + :param version: The version of the artifact. + :type version: str + """ + + _attribute_map = { + 'media_type': {'key': 'mediaType', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'digest': {'key': 'digest', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, media_type: str=None, size: int=None, digest: str=None, repository: str=None, tag: str=None, name: str=None, version: str=None, **kwargs) -> None: + super(ContainerRegistryArtifactEventTarget, self).__init__(**kwargs) + self.media_type = media_type + self.size = size + self.digest = digest + self.repository = repository + self.tag = tag + self.name = name + self.version = version diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data.py b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data.py new file mode 100644 index 000000000000..bfca65e364b9 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_registry_artifact_event_data import ContainerRegistryArtifactEventData + + +class ContainerRegistryChartDeletedEventData(ContainerRegistryArtifactEventData): + """Schema of the Data property of an EventGridEvent for a + Microsoft.ContainerRegistry.ChartDeleted event. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, **kwargs): + super(ContainerRegistryChartDeletedEventData, self).__init__(**kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data_py3.py new file mode 100644 index 000000000000..7c8b2d18d26a --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_deleted_event_data_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_registry_artifact_event_data_py3 import ContainerRegistryArtifactEventData + + +class ContainerRegistryChartDeletedEventData(ContainerRegistryArtifactEventData): + """Schema of the Data property of an EventGridEvent for a + Microsoft.ContainerRegistry.ChartDeleted event. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, *, id: str=None, timestamp=None, action: str=None, target=None, **kwargs) -> None: + super(ContainerRegistryChartDeletedEventData, self).__init__(id=id, timestamp=timestamp, action=action, target=target, **kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data.py b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data.py new file mode 100644 index 000000000000..5a2b4b37e6cf --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_registry_artifact_event_data import ContainerRegistryArtifactEventData + + +class ContainerRegistryChartPushedEventData(ContainerRegistryArtifactEventData): + """Schema of the Data property of an EventGridEvent for a + Microsoft.ContainerRegistry.ChartPushed event. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, **kwargs): + super(ContainerRegistryChartPushedEventData, self).__init__(**kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data_py3.py new file mode 100644 index 000000000000..ecce11098dac --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/container_registry_chart_pushed_event_data_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_registry_artifact_event_data_py3 import ContainerRegistryArtifactEventData + + +class ContainerRegistryChartPushedEventData(ContainerRegistryArtifactEventData): + """Schema of the Data property of an EventGridEvent for a + Microsoft.ContainerRegistry.ChartPushed event. + + :param id: The event ID. + :type id: str + :param timestamp: The time at which the event occurred. + :type timestamp: datetime + :param action: The action that encompasses the provided event. + :type action: str + :param target: The target of the event. + :type target: ~azure.eventgrid.models.ContainerRegistryArtifactEventTarget + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'action': {'key': 'action', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'ContainerRegistryArtifactEventTarget'}, + } + + def __init__(self, *, id: str=None, timestamp=None, action: str=None, target=None, **kwargs) -> None: + super(ContainerRegistryChartPushedEventData, self).__init__(id=id, timestamp=timestamp, action=action, target=target, **kwargs)