-
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] eventgrid/resource-manager (#2902)
* Generated from e1fc2e1bdad54c396693d98c655354fc82f8f36b (#2885) 1) Fix for linter error "Properties of a PATCH request body must not be default-valued. PATCH operation: 'EventSubscriptions_Update' Model Definition: 'EventSubscriptionUpdateParameters' Property: 'eventDeliverySchema'". 2) Updated the default value of EventDeliverySchema to the correct value used by the service. * Generated from b4273ec0b368f83e73154dec7bfcffc5b9135f5f (#3229) Swagger changes for 2018-09-15-preview API version. * Packaging update of azure-mgmt-eventgrid * [AutoPR eventgrid/resource-manager] EventGrid: Updated README.MD configuration to include the new preview API version. (#3292) * Generated from 569674609f3c16360c668e5b0693bdd4385700ec Merge remote-tracking branch 'upstream/master' * Generated from f05cde9aaf9ffa3a4a72406033a5d6527cd94fab Added two new operatorTypes to AdvancedFilter + marked a couple of properties readOnly. * Generated from 731d3b6b72a89918dcd03171a26854c8e55b4147 (#3364) README.md changes: Updated default tag for global settings and updates to multi-api settings. * [AutoPR eventgrid/resource-manager] EventGrid: Update README files to include the current new preview api… (#3615) * Generated from ce8469266acf934b97b1cc71b6610123b24710b6 EventGrid: Update README files to include the current new preview api version 2018-09-preview * Packaging update of azure-mgmt-eventgrid * Packaging update of azure-mgmt-eventgrid * Packaging update of azure-mgmt-eventgrid * EventGrid 2.0.0rc2 * Added a new test + re-recorded all tests.
- Loading branch information
1 parent
ce09935
commit cf1df01
Showing
72 changed files
with
3,247 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.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
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
53 changes: 53 additions & 0 deletions
53
azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/advanced_filter.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,53 @@ | ||
# 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 AdvancedFilter(Model): | ||
"""Represents an advanced filter that can be used to filter events based on | ||
various event envelope/data fields. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: NumberInAdvancedFilter, NumberNotInAdvancedFilter, | ||
NumberLessThanAdvancedFilter, NumberGreaterThanAdvancedFilter, | ||
NumberLessThanOrEqualsAdvancedFilter, | ||
NumberGreaterThanOrEqualsAdvancedFilter, BoolEqualsAdvancedFilter, | ||
StringInAdvancedFilter, StringNotInAdvancedFilter, | ||
StringBeginsWithAdvancedFilter, StringEndsWithAdvancedFilter, | ||
StringContainsAdvancedFilter | ||
All required parameters must be populated in order to send to Azure. | ||
:param key: The filter key. Represents an event property with upto two | ||
levels of nesting. | ||
:type key: str | ||
:param operator_type: Required. Constant filled by server. | ||
:type operator_type: str | ||
""" | ||
|
||
_validation = { | ||
'operator_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'key': {'key': 'key', 'type': 'str'}, | ||
'operator_type': {'key': 'operatorType', 'type': 'str'}, | ||
} | ||
|
||
_subtype_map = { | ||
'operator_type': {'NumberIn': 'NumberInAdvancedFilter', 'NumberNotIn': 'NumberNotInAdvancedFilter', 'NumberLessThan': 'NumberLessThanAdvancedFilter', 'NumberGreaterThan': 'NumberGreaterThanAdvancedFilter', 'NumberLessThanOrEquals': 'NumberLessThanOrEqualsAdvancedFilter', 'NumberGreaterThanOrEquals': 'NumberGreaterThanOrEqualsAdvancedFilter', 'BoolEquals': 'BoolEqualsAdvancedFilter', 'StringIn': 'StringInAdvancedFilter', 'StringNotIn': 'StringNotInAdvancedFilter', 'StringBeginsWith': 'StringBeginsWithAdvancedFilter', 'StringEndsWith': 'StringEndsWithAdvancedFilter', 'StringContains': 'StringContainsAdvancedFilter'} | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AdvancedFilter, self).__init__(**kwargs) | ||
self.key = kwargs.get('key', None) | ||
self.operator_type = None |
53 changes: 53 additions & 0 deletions
53
azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/advanced_filter_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,53 @@ | ||
# 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 AdvancedFilter(Model): | ||
"""Represents an advanced filter that can be used to filter events based on | ||
various event envelope/data fields. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: NumberInAdvancedFilter, NumberNotInAdvancedFilter, | ||
NumberLessThanAdvancedFilter, NumberGreaterThanAdvancedFilter, | ||
NumberLessThanOrEqualsAdvancedFilter, | ||
NumberGreaterThanOrEqualsAdvancedFilter, BoolEqualsAdvancedFilter, | ||
StringInAdvancedFilter, StringNotInAdvancedFilter, | ||
StringBeginsWithAdvancedFilter, StringEndsWithAdvancedFilter, | ||
StringContainsAdvancedFilter | ||
All required parameters must be populated in order to send to Azure. | ||
:param key: The filter key. Represents an event property with upto two | ||
levels of nesting. | ||
:type key: str | ||
:param operator_type: Required. Constant filled by server. | ||
:type operator_type: str | ||
""" | ||
|
||
_validation = { | ||
'operator_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'key': {'key': 'key', 'type': 'str'}, | ||
'operator_type': {'key': 'operatorType', 'type': 'str'}, | ||
} | ||
|
||
_subtype_map = { | ||
'operator_type': {'NumberIn': 'NumberInAdvancedFilter', 'NumberNotIn': 'NumberNotInAdvancedFilter', 'NumberLessThan': 'NumberLessThanAdvancedFilter', 'NumberGreaterThan': 'NumberGreaterThanAdvancedFilter', 'NumberLessThanOrEquals': 'NumberLessThanOrEqualsAdvancedFilter', 'NumberGreaterThanOrEquals': 'NumberGreaterThanOrEqualsAdvancedFilter', 'BoolEquals': 'BoolEqualsAdvancedFilter', 'StringIn': 'StringInAdvancedFilter', 'StringNotIn': 'StringNotInAdvancedFilter', 'StringBeginsWith': 'StringBeginsWithAdvancedFilter', 'StringEndsWith': 'StringEndsWithAdvancedFilter', 'StringContains': 'StringContainsAdvancedFilter'} | ||
} | ||
|
||
def __init__(self, *, key: str=None, **kwargs) -> None: | ||
super(AdvancedFilter, self).__init__(**kwargs) | ||
self.key = key | ||
self.operator_type = None |
42 changes: 42 additions & 0 deletions
42
azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/bool_equals_advanced_filter.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,42 @@ | ||
# 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 .advanced_filter import AdvancedFilter | ||
|
||
|
||
class BoolEqualsAdvancedFilter(AdvancedFilter): | ||
"""BoolEquals Filter. | ||
All required parameters must be populated in order to send to Azure. | ||
:param key: The filter key. Represents an event property with upto two | ||
levels of nesting. | ||
:type key: str | ||
:param operator_type: Required. Constant filled by server. | ||
:type operator_type: str | ||
:param value: The filter value | ||
:type value: bool | ||
""" | ||
|
||
_validation = { | ||
'operator_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'key': {'key': 'key', 'type': 'str'}, | ||
'operator_type': {'key': 'operatorType', 'type': 'str'}, | ||
'value': {'key': 'value', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(BoolEqualsAdvancedFilter, self).__init__(**kwargs) | ||
self.value = kwargs.get('value', None) | ||
self.operator_type = 'BoolEquals' |
Oops, something went wrong.