-
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] EventGrid: Updated README.MD conf…
…iguration 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.
- Loading branch information
1 parent
00f74c1
commit 83725e1
Showing
54 changed files
with
2,656 additions
and
31 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
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' |
42 changes: 42 additions & 0 deletions
42
azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/bool_equals_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,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_py3 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, *, key: str=None, value: bool=None, **kwargs) -> None: | ||
super(BoolEqualsAdvancedFilter, self).__init__(key=key, **kwargs) | ||
self.value = value | ||
self.operator_type = 'BoolEquals' |
Oops, something went wrong.