-
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 (#4430)
* [AutoPR eventgrid/resource-manager] EventGrid: Swagger Changes for 2019-02-01-preview (#4397) * Generated from 9b8252073be1dc515ff7a29bb4aa19a954991e60 Copy 2018-09-15-preview files to get a baseline * Packaging update of azure-mgmt-eventgrid * Generated from 46cf5eb760200cfa581a2988ac88c7d790c895c0 update readme.md file and address some violations * Generated from a24d800830002278277351bbf1a580248c585274 update summary text per code review comments * Generated from c681e1b7ce8baad94433d826b119127fc9c4891b Address CR comments * 2.1.0rc1 * Packaging update of azure-mgmt-eventgrid
- Loading branch information
1 parent
6a45cf2
commit 47490fe
Showing
76 changed files
with
3,634 additions
and
76 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,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
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
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
57 changes: 57 additions & 0 deletions
57
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,57 @@ | ||
# 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): | ||
"""This is the base type that represents an advanced filter. To configure an | ||
advanced filter, do not directly instantiate an object of this class. | ||
Instead, instantiate an object of a derived class such as | ||
BoolEqualsAdvancedFilter, NumberInAdvancedFilter, | ||
StringEqualsAdvancedFilter etc. depending on the type of the key based on | ||
which you want to filter. | ||
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 field/property in the event based on which you want to | ||
filter. | ||
: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 |
57 changes: 57 additions & 0 deletions
57
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,57 @@ | ||
# 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): | ||
"""This is the base type that represents an advanced filter. To configure an | ||
advanced filter, do not directly instantiate an object of this class. | ||
Instead, instantiate an object of a derived class such as | ||
BoolEqualsAdvancedFilter, NumberInAdvancedFilter, | ||
StringEqualsAdvancedFilter etc. depending on the type of the key based on | ||
which you want to filter. | ||
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 field/property in the event based on which you want to | ||
filter. | ||
: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 |
Oops, something went wrong.