-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] restapi_auto_eventgrid/data-plane (#1940)
* [AutoPR eventgrid/data-plane] EventGrid data spec for Microsoft.Devices/Iothub (#1904) * Generated from 09ac6b9005ddc1667bfc5b9d5b16a443ea2ad363 EventGrid data spec for Microsoft.Devices/Iothub * Generated from f361f6c926150cd9b32b899b461820a29596af3d Update to break out complex objection into smaller definitions * Generated from 048ae64499ca8406a3757bd92caef9a19219a15e Use allOf instead of flatten attribute * Generated from ac94324824771806a34d4bb260ab169201d84a26 Using x-ms-client-name for properties with $ symbol * [AutoPR eventgrid/data-plane] [EventGrid/ACR] Add schema of ACR events published to Event Grid (#1973) * Generated from 68c7269bf112dbc1c3a9f685d456d49c083e7e01 Update readme file * Generated from fb68356e498ecacce188fe42fa15aa7cacbb329d Prefix class name with ContainerRegistry * Generated from c67230b9d400baa1f6e88f8643fb8a716172dbc0 (#2476) EventGrid Py conf to 1.0.0 * Packaging for EventGrid DT 1.0.0
- Loading branch information
Showing
55 changed files
with
2,261 additions
and
143 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
30 changes: 30 additions & 0 deletions
30
azure-eventgrid/azure/eventgrid/models/container_registry_event_actor.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,30 @@ | ||
# 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 ContainerRegistryEventActor(Model): | ||
"""The agent that initiated the event. For most situations, this could be from | ||
the authorization context of the request. | ||
:param name: The subject or username associated with the request context | ||
that generated the event. | ||
:type name: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ContainerRegistryEventActor, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) |
30 changes: 30 additions & 0 deletions
30
azure-eventgrid/azure/eventgrid/models/container_registry_event_actor_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,30 @@ | ||
# 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 ContainerRegistryEventActor(Model): | ||
"""The agent that initiated the event. For most situations, this could be from | ||
the authorization context of the request. | ||
:param name: The subject or username associated with the request context | ||
that generated the event. | ||
:type name: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, **kwargs) -> None: | ||
super(ContainerRegistryEventActor, self).__init__(**kwargs) | ||
self.name = name |
54 changes: 54 additions & 0 deletions
54
azure-eventgrid/azure/eventgrid/models/container_registry_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,54 @@ | ||
# 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 ContainerRegistryEventData(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.ContainerRegistryEventTarget | ||
:param request: The request that generated the event. | ||
:type request: ~azure.eventgrid.models.ContainerRegistryEventRequest | ||
:param actor: The agent that initiated the event. For most situations, | ||
this could be from the authorization context of the request. | ||
:type actor: ~azure.eventgrid.models.ContainerRegistryEventActor | ||
:param source: The registry node that generated the event. Put | ||
differently, while the actor initiates the event, the source generates it. | ||
:type source: ~azure.eventgrid.models.ContainerRegistryEventSource | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, | ||
'action': {'key': 'action', 'type': 'str'}, | ||
'target': {'key': 'target', 'type': 'ContainerRegistryEventTarget'}, | ||
'request': {'key': 'request', 'type': 'ContainerRegistryEventRequest'}, | ||
'actor': {'key': 'actor', 'type': 'ContainerRegistryEventActor'}, | ||
'source': {'key': 'source', 'type': 'ContainerRegistryEventSource'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ContainerRegistryEventData, 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) | ||
self.request = kwargs.get('request', None) | ||
self.actor = kwargs.get('actor', None) | ||
self.source = kwargs.get('source', None) |
54 changes: 54 additions & 0 deletions
54
azure-eventgrid/azure/eventgrid/models/container_registry_event_data_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,54 @@ | ||
# 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 ContainerRegistryEventData(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.ContainerRegistryEventTarget | ||
:param request: The request that generated the event. | ||
:type request: ~azure.eventgrid.models.ContainerRegistryEventRequest | ||
:param actor: The agent that initiated the event. For most situations, | ||
this could be from the authorization context of the request. | ||
:type actor: ~azure.eventgrid.models.ContainerRegistryEventActor | ||
:param source: The registry node that generated the event. Put | ||
differently, while the actor initiates the event, the source generates it. | ||
:type source: ~azure.eventgrid.models.ContainerRegistryEventSource | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, | ||
'action': {'key': 'action', 'type': 'str'}, | ||
'target': {'key': 'target', 'type': 'ContainerRegistryEventTarget'}, | ||
'request': {'key': 'request', 'type': 'ContainerRegistryEventRequest'}, | ||
'actor': {'key': 'actor', 'type': 'ContainerRegistryEventActor'}, | ||
'source': {'key': 'source', 'type': 'ContainerRegistryEventSource'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, timestamp=None, action: str=None, target=None, request=None, actor=None, source=None, **kwargs) -> None: | ||
super(ContainerRegistryEventData, self).__init__(**kwargs) | ||
self.id = id | ||
self.timestamp = timestamp | ||
self.action = action | ||
self.target = target | ||
self.request = request | ||
self.actor = actor | ||
self.source = source |
47 changes: 47 additions & 0 deletions
47
azure-eventgrid/azure/eventgrid/models/container_registry_event_request.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,47 @@ | ||
# 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 ContainerRegistryEventRequest(Model): | ||
"""The request that generated the event. | ||
:param id: The ID of the request that initiated the event. | ||
:type id: str | ||
:param addr: The IP or hostname and possibly port of the client connection | ||
that initiated the event. This is the RemoteAddr from the standard http | ||
request. | ||
:type addr: str | ||
:param host: The externally accessible hostname of the registry instance, | ||
as specified by the http host header on incoming requests. | ||
:type host: str | ||
:param method: The request method that generated the event. | ||
:type method: str | ||
:param useragent: The user agent header of the request. | ||
:type useragent: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'addr': {'key': 'addr', 'type': 'str'}, | ||
'host': {'key': 'host', 'type': 'str'}, | ||
'method': {'key': 'method', 'type': 'str'}, | ||
'useragent': {'key': 'useragent', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ContainerRegistryEventRequest, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) | ||
self.addr = kwargs.get('addr', None) | ||
self.host = kwargs.get('host', None) | ||
self.method = kwargs.get('method', None) | ||
self.useragent = kwargs.get('useragent', None) |
Oops, something went wrong.