-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EventGrid DataPlane SDK: Regenerated the SDK based on latest swagger. (…
…#3181) * Regenerated SDK based on latest Swagger specifications to include new/modified IotHub events and new ARM events. * Updated version and history information. * Updated date in release history. * EventGrid packaging
- Loading branch information
Showing
28 changed files
with
812 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
azure-eventgrid/azure/eventgrid/models/device_connection_state_event_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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 DeviceConnectionStateEventInfo(Model): | ||
"""Information about the device connection state event. | ||
:param sequence_number: Sequence number is string representation of a | ||
hexadecimal number. string compare can be used to identify the larger | ||
number because both in ASCII and HEX numbers come after alphabets. If you | ||
are converting the string to hex, then the number is a 256 bit number. | ||
:type sequence_number: str | ||
""" | ||
|
||
_attribute_map = { | ||
'sequence_number': {'key': 'sequenceNumber', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(DeviceConnectionStateEventInfo, self).__init__(**kwargs) | ||
self.sequence_number = kwargs.get('sequence_number', None) |
31 changes: 31 additions & 0 deletions
31
azure-eventgrid/azure/eventgrid/models/device_connection_state_event_info_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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 DeviceConnectionStateEventInfo(Model): | ||
"""Information about the device connection state event. | ||
:param sequence_number: Sequence number is string representation of a | ||
hexadecimal number. string compare can be used to identify the larger | ||
number because both in ASCII and HEX numbers come after alphabets. If you | ||
are converting the string to hex, then the number is a 256 bit number. | ||
:type sequence_number: str | ||
""" | ||
|
||
_attribute_map = { | ||
'sequence_number': {'key': 'sequenceNumber', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, sequence_number: str=None, **kwargs) -> None: | ||
super(DeviceConnectionStateEventInfo, self).__init__(**kwargs) | ||
self.sequence_number = sequence_number |
50 changes: 50 additions & 0 deletions
50
azure-eventgrid/azure/eventgrid/models/device_connection_state_event_properties.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 DeviceConnectionStateEventProperties(Model): | ||
"""Schema of the Data property of an EventGridEvent for a device connection | ||
state event (DeviceConnected, DeviceDisconnected). | ||
:param device_id: The unique identifier of the device. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type device_id: str | ||
:param module_id: The unique identifier of the module. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type module_id: str | ||
:param hub_name: Name of the IoT Hub where the device was created or | ||
deleted. | ||
:type hub_name: str | ||
:param device_connection_state_event_info: Information about the device | ||
connection state event. | ||
:type device_connection_state_event_info: | ||
~azure.eventgrid.models.DeviceConnectionStateEventInfo | ||
""" | ||
|
||
_attribute_map = { | ||
'device_id': {'key': 'deviceId', 'type': 'str'}, | ||
'module_id': {'key': 'moduleId', 'type': 'str'}, | ||
'hub_name': {'key': 'hubName', 'type': 'str'}, | ||
'device_connection_state_event_info': {'key': 'deviceConnectionStateEventInfo', 'type': 'DeviceConnectionStateEventInfo'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(DeviceConnectionStateEventProperties, self).__init__(**kwargs) | ||
self.device_id = kwargs.get('device_id', None) | ||
self.module_id = kwargs.get('module_id', None) | ||
self.hub_name = kwargs.get('hub_name', None) | ||
self.device_connection_state_event_info = kwargs.get('device_connection_state_event_info', None) |
50 changes: 50 additions & 0 deletions
50
azure-eventgrid/azure/eventgrid/models/device_connection_state_event_properties_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 DeviceConnectionStateEventProperties(Model): | ||
"""Schema of the Data property of an EventGridEvent for a device connection | ||
state event (DeviceConnected, DeviceDisconnected). | ||
:param device_id: The unique identifier of the device. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type device_id: str | ||
:param module_id: The unique identifier of the module. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type module_id: str | ||
:param hub_name: Name of the IoT Hub where the device was created or | ||
deleted. | ||
:type hub_name: str | ||
:param device_connection_state_event_info: Information about the device | ||
connection state event. | ||
:type device_connection_state_event_info: | ||
~azure.eventgrid.models.DeviceConnectionStateEventInfo | ||
""" | ||
|
||
_attribute_map = { | ||
'device_id': {'key': 'deviceId', 'type': 'str'}, | ||
'module_id': {'key': 'moduleId', 'type': 'str'}, | ||
'hub_name': {'key': 'hubName', 'type': 'str'}, | ||
'device_connection_state_event_info': {'key': 'deviceConnectionStateEventInfo', 'type': 'DeviceConnectionStateEventInfo'}, | ||
} | ||
|
||
def __init__(self, *, device_id: str=None, module_id: str=None, hub_name: str=None, device_connection_state_event_info=None, **kwargs) -> None: | ||
super(DeviceConnectionStateEventProperties, self).__init__(**kwargs) | ||
self.device_id = device_id | ||
self.module_id = module_id | ||
self.hub_name = hub_name | ||
self.device_connection_state_event_info = device_connection_state_event_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
azure-eventgrid/azure/eventgrid/models/iot_hub_device_connected_event_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 .device_connection_state_event_properties import DeviceConnectionStateEventProperties | ||
|
||
|
||
class IotHubDeviceConnectedEventData(DeviceConnectionStateEventProperties): | ||
"""Event data for Microsoft.Devices.DeviceConnected event. | ||
:param device_id: The unique identifier of the device. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type device_id: str | ||
:param module_id: The unique identifier of the module. This case-sensitive | ||
string can be up to 128 characters long, and supports ASCII 7-bit | ||
alphanumeric characters plus the following special characters: - : . + % _ | ||
# * ? ! ( ) , = @ ; $ '. | ||
:type module_id: str | ||
:param hub_name: Name of the IoT Hub where the device was created or | ||
deleted. | ||
:type hub_name: str | ||
:param device_connection_state_event_info: Information about the device | ||
connection state event. | ||
:type device_connection_state_event_info: | ||
~azure.eventgrid.models.DeviceConnectionStateEventInfo | ||
""" | ||
|
||
_attribute_map = { | ||
'device_id': {'key': 'deviceId', 'type': 'str'}, | ||
'module_id': {'key': 'moduleId', 'type': 'str'}, | ||
'hub_name': {'key': 'hubName', 'type': 'str'}, | ||
'device_connection_state_event_info': {'key': 'deviceConnectionStateEventInfo', 'type': 'DeviceConnectionStateEventInfo'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(IotHubDeviceConnectedEventData, self).__init__(**kwargs) |
Oops, something went wrong.