Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[AutoPR eventgrid/data-plane] Add Helm Events to ACR Schema for Event Grid #4258

Merged
merged 2 commits into from
Jan 31, 2019
Merged
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
12 changes: 12 additions & 0 deletions azure-eventgrid/azure/eventgrid/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -179,11 +187,15 @@
'DeviceConnectionStateEventProperties',
'ContainerRegistryImagePushedEventData',
'ContainerRegistryImageDeletedEventData',
'ContainerRegistryChartPushedEventData',
'ContainerRegistryChartDeletedEventData',
'ContainerRegistryEventTarget',
'ContainerRegistryEventRequest',
'ContainerRegistryEventActor',
'ContainerRegistryEventSource',
'ContainerRegistryEventData',
'ContainerRegistryArtifactEventTarget',
'ContainerRegistryArtifactEventData',
'ServiceBusActiveMessagesAvailableWithNoListenersEventData',
'ServiceBusDeadletterMessagesAvailableWithNoListenersEventData',
'MediaJobStateChangeEventData',
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)