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] Added Azure App Configuration event data schema. #4465

Merged
merged 3 commits into from
Mar 1, 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
1 change: 1 addition & 0 deletions azure-eventgrid/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py

6 changes: 6 additions & 0 deletions azure-eventgrid/azure/eventgrid/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
from .maps_geofence_result_event_data_py3 import MapsGeofenceResultEventData
from .maps_geofence_geometry_py3 import MapsGeofenceGeometry
from .maps_geofence_event_properties_py3 import MapsGeofenceEventProperties
from .app_configuration_key_value_modified_event_data_py3 import AppConfigurationKeyValueModifiedEventData
from .app_configuration_key_value_deleted_event_data_py3 import AppConfigurationKeyValueDeletedEventData
except (SyntaxError, ImportError):
from .storage_blob_created_event_data import StorageBlobCreatedEventData
from .storage_blob_deleted_event_data import StorageBlobDeletedEventData
Expand Down Expand Up @@ -159,6 +161,8 @@
from .maps_geofence_result_event_data import MapsGeofenceResultEventData
from .maps_geofence_geometry import MapsGeofenceGeometry
from .maps_geofence_event_properties import MapsGeofenceEventProperties
from .app_configuration_key_value_modified_event_data import AppConfigurationKeyValueModifiedEventData
from .app_configuration_key_value_deleted_event_data import AppConfigurationKeyValueDeletedEventData
from .event_grid_client_enums import (
MediaJobState,
MediaJobErrorCode,
Expand Down Expand Up @@ -241,6 +245,8 @@
'MapsGeofenceResultEventData',
'MapsGeofenceGeometry',
'MapsGeofenceEventProperties',
'AppConfigurationKeyValueModifiedEventData',
'AppConfigurationKeyValueDeletedEventData',
'MediaJobState',
'MediaJobErrorCode',
'MediaJobErrorCategory',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 AppConfigurationKeyValueDeletedEventData(Model):
"""Schema of the Data property of an EventGridEvent for an
Microsoft.AppConfiguration.KeyValueDeleted event.

:param key: The key used to identify the key-value that was deleted.
:type key: str
:param label: The label, if any, used to identify the key-value that was
deleted.
:type label: str
:param etag: The etag representing the key-value that was deleted.
:type etag: str
"""

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AppConfigurationKeyValueDeletedEventData, self).__init__(**kwargs)
self.key = kwargs.get('key', None)
self.label = kwargs.get('label', None)
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 AppConfigurationKeyValueDeletedEventData(Model):
"""Schema of the Data property of an EventGridEvent for an
Microsoft.AppConfiguration.KeyValueDeleted event.

:param key: The key used to identify the key-value that was deleted.
:type key: str
:param label: The label, if any, used to identify the key-value that was
deleted.
:type label: str
:param etag: The etag representing the key-value that was deleted.
:type etag: str
"""

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, key: str=None, label: str=None, etag: str=None, **kwargs) -> None:
super(AppConfigurationKeyValueDeletedEventData, self).__init__(**kwargs)
self.key = key
self.label = label
self.etag = etag
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 AppConfigurationKeyValueModifiedEventData(Model):
"""Schema of the Data property of an EventGridEvent for an
Microsoft.AppConfiguration.KeyValueModified event.

:param key: The key used to identify the key-value that was modified.
:type key: str
:param label: The label, if any, used to identify the key-value that was
modified.
:type label: str
:param etag: The etag representing the new state of the key-value.
:type etag: str
"""

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AppConfigurationKeyValueModifiedEventData, self).__init__(**kwargs)
self.key = kwargs.get('key', None)
self.label = kwargs.get('label', None)
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 AppConfigurationKeyValueModifiedEventData(Model):
"""Schema of the Data property of an EventGridEvent for an
Microsoft.AppConfiguration.KeyValueModified event.

:param key: The key used to identify the key-value that was modified.
:type key: str
:param label: The label, if any, used to identify the key-value that was
modified.
:type label: str
:param etag: The etag representing the new state of the key-value.
:type etag: str
"""

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, key: str=None, label: str=None, etag: str=None, **kwargs) -> None:
super(AppConfigurationKeyValueModifiedEventData, self).__init__(**kwargs)
self.key = key
self.label = label
self.etag = etag
3 changes: 2 additions & 1 deletion azure-eventgrid/azure/eventgrid/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0"
VERSION = "1.0.0"