-
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.
Generated from a7ae120aeccf96b91aeeb0a9cba5428cd39f5352 (#2571)
Added subscription validation response.
- Loading branch information
1 parent
8a491dc
commit 2a24a5c
Showing
11 changed files
with
251 additions
and
4 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
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
37 changes: 37 additions & 0 deletions
37
azure-eventgrid/azure/eventgrid/models/subscription_deleted_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,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 msrest.serialization import Model | ||
|
||
|
||
class SubscriptionDeletedEventData(Model): | ||
"""Schema of the Data property of an EventGridEvent for a | ||
Microsoft.EventGrid.SubscriptionDeletedEvent. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar event_subscription_id: The Azure resource ID of the deleted event | ||
subscription. | ||
:vartype event_subscription_id: str | ||
""" | ||
|
||
_validation = { | ||
'event_subscription_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'event_subscription_id': {'key': 'eventSubscriptionId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(SubscriptionDeletedEventData, self).__init__(**kwargs) | ||
self.event_subscription_id = None |
37 changes: 37 additions & 0 deletions
37
azure-eventgrid/azure/eventgrid/models/subscription_deleted_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,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 msrest.serialization import Model | ||
|
||
|
||
class SubscriptionDeletedEventData(Model): | ||
"""Schema of the Data property of an EventGridEvent for a | ||
Microsoft.EventGrid.SubscriptionDeletedEvent. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar event_subscription_id: The Azure resource ID of the deleted event | ||
subscription. | ||
:vartype event_subscription_id: str | ||
""" | ||
|
||
_validation = { | ||
'event_subscription_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'event_subscription_id': {'key': 'eventSubscriptionId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(SubscriptionDeletedEventData, self).__init__(**kwargs) | ||
self.event_subscription_id = None |
50 changes: 50 additions & 0 deletions
50
azure-eventgrid/azure/eventgrid/models/subscription_validation_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,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 SubscriptionValidationEventData(Model): | ||
"""Schema of the Data property of an EventGridEvent for a | ||
Microsoft.EventGrid.SubscriptionValidationEvent. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar validation_code: The validation code sent by Azure Event Grid to | ||
validate an event subscription. To complete the validation handshake, the | ||
subscriber must either respond with this validation code as part of the | ||
validation response, or perform a GET request on the validationUrl | ||
(available starting version 2018-05-01-preview). | ||
:vartype validation_code: str | ||
:ivar validation_url: The validation URL sent by Azure Event Grid | ||
(available starting version 2018-05-01-preview). To complete the | ||
validation handshake, the subscriber must either respond with the | ||
validationCode as part of the validation response, or perform a GET | ||
request on the validationUrl (available starting version | ||
2018-05-01-preview). | ||
:vartype validation_url: str | ||
""" | ||
|
||
_validation = { | ||
'validation_code': {'readonly': True}, | ||
'validation_url': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'validation_code': {'key': 'validationCode', 'type': 'str'}, | ||
'validation_url': {'key': 'validationUrl', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(SubscriptionValidationEventData, self).__init__(**kwargs) | ||
self.validation_code = None | ||
self.validation_url = None |
50 changes: 50 additions & 0 deletions
50
azure-eventgrid/azure/eventgrid/models/subscription_validation_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,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 SubscriptionValidationEventData(Model): | ||
"""Schema of the Data property of an EventGridEvent for a | ||
Microsoft.EventGrid.SubscriptionValidationEvent. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar validation_code: The validation code sent by Azure Event Grid to | ||
validate an event subscription. To complete the validation handshake, the | ||
subscriber must either respond with this validation code as part of the | ||
validation response, or perform a GET request on the validationUrl | ||
(available starting version 2018-05-01-preview). | ||
:vartype validation_code: str | ||
:ivar validation_url: The validation URL sent by Azure Event Grid | ||
(available starting version 2018-05-01-preview). To complete the | ||
validation handshake, the subscriber must either respond with the | ||
validationCode as part of the validation response, or perform a GET | ||
request on the validationUrl (available starting version | ||
2018-05-01-preview). | ||
:vartype validation_url: str | ||
""" | ||
|
||
_validation = { | ||
'validation_code': {'readonly': True}, | ||
'validation_url': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'validation_code': {'key': 'validationCode', 'type': 'str'}, | ||
'validation_url': {'key': 'validationUrl', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(SubscriptionValidationEventData, self).__init__(**kwargs) | ||
self.validation_code = None | ||
self.validation_url = None |
32 changes: 32 additions & 0 deletions
32
azure-eventgrid/azure/eventgrid/models/subscription_validation_response.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,32 @@ | ||
# 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 SubscriptionValidationResponse(Model): | ||
"""To complete an event subscription validation handshake, a subscriber can | ||
use either the validationCode or the validationUrl received in a | ||
SubscriptionValidationEvent. When the validationCode is used, the | ||
SubscriptionValidationResponse can be used to build the response. | ||
:param validation_response: The validation response sent by the subscriber | ||
to Azure Event Grid to complete the validation of an event subscription. | ||
:type validation_response: str | ||
""" | ||
|
||
_attribute_map = { | ||
'validation_response': {'key': 'validationResponse', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(SubscriptionValidationResponse, self).__init__(**kwargs) | ||
self.validation_response = kwargs.get('validation_response', None) |
32 changes: 32 additions & 0 deletions
32
azure-eventgrid/azure/eventgrid/models/subscription_validation_response_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,32 @@ | ||
# 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 SubscriptionValidationResponse(Model): | ||
"""To complete an event subscription validation handshake, a subscriber can | ||
use either the validationCode or the validationUrl received in a | ||
SubscriptionValidationEvent. When the validationCode is used, the | ||
SubscriptionValidationResponse can be used to build the response. | ||
:param validation_response: The validation response sent by the subscriber | ||
to Azure Event Grid to complete the validation of an event subscription. | ||
:type validation_response: str | ||
""" | ||
|
||
_attribute_map = { | ||
'validation_response': {'key': 'validationResponse', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, validation_response: str=None, **kwargs) -> None: | ||
super(SubscriptionValidationResponse, self).__init__(**kwargs) | ||
self.validation_response = validation_response |