Skip to content

Commit

Permalink
[AutoPR eventgrid/resource-manager] EventGrid: Updated README.MD conf…
Browse files Browse the repository at this point in the history
…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
AutorestCI authored Sep 11, 2018
1 parent 00f74c1 commit 83725e1
Show file tree
Hide file tree
Showing 54 changed files with 2,656 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.domains_operations import DomainsOperations
from .operations.domain_topics_operations import DomainTopicsOperations
from .operations.event_subscriptions_operations import EventSubscriptionsOperations
from .operations.operations import Operations
from .operations.topics_operations import TopicsOperations
Expand Down Expand Up @@ -60,6 +62,10 @@ class EventGridManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: EventGridManagementClientConfiguration
:ivar domains: Domains operations
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
:ivar domain_topics: DomainTopics operations
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
:ivar event_subscriptions: EventSubscriptions operations
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
:ivar operations: Operations operations
Expand All @@ -86,10 +92,14 @@ def __init__(
super(EventGridManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-05-01-preview'
self.api_version = '2018-09-15-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.domains = DomainsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.domain_topics = DomainTopicsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.event_subscriptions = EventSubscriptionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
Expand Down
70 changes: 65 additions & 5 deletions azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,31 @@
# --------------------------------------------------------------------------

try:
from .input_schema_mapping_py3 import InputSchemaMapping
from .domain_py3 import Domain
from .domain_update_parameters_py3 import DomainUpdateParameters
from .domain_shared_access_keys_py3 import DomainSharedAccessKeys
from .domain_regenerate_key_request_py3 import DomainRegenerateKeyRequest
from .domain_topic_py3 import DomainTopic
from .event_subscription_destination_py3 import EventSubscriptionDestination
from .advanced_filter_py3 import AdvancedFilter
from .event_subscription_filter_py3 import EventSubscriptionFilter
from .retry_policy_py3 import RetryPolicy
from .dead_letter_destination_py3 import DeadLetterDestination
from .resource_py3 import Resource
from .number_in_advanced_filter_py3 import NumberInAdvancedFilter
from .storage_blob_dead_letter_destination_py3 import StorageBlobDeadLetterDestination
from .number_not_in_advanced_filter_py3 import NumberNotInAdvancedFilter
from .number_less_than_advanced_filter_py3 import NumberLessThanAdvancedFilter
from .number_greater_than_advanced_filter_py3 import NumberGreaterThanAdvancedFilter
from .number_less_than_or_equals_advanced_filter_py3 import NumberLessThanOrEqualsAdvancedFilter
from .number_greater_than_or_equals_advanced_filter_py3 import NumberGreaterThanOrEqualsAdvancedFilter
from .bool_equals_advanced_filter_py3 import BoolEqualsAdvancedFilter
from .string_in_advanced_filter_py3 import StringInAdvancedFilter
from .string_not_in_advanced_filter_py3 import StringNotInAdvancedFilter
from .string_begins_with_advanced_filter_py3 import StringBeginsWithAdvancedFilter
from .string_ends_with_advanced_filter_py3 import StringEndsWithAdvancedFilter
from .string_contains_advanced_filter_py3 import StringContainsAdvancedFilter
from .web_hook_event_subscription_destination_py3 import WebHookEventSubscriptionDestination
from .event_hub_event_subscription_destination_py3 import EventHubEventSubscriptionDestination
from .storage_queue_event_subscription_destination_py3 import StorageQueueEventSubscriptionDestination
Expand All @@ -25,7 +44,6 @@
from .event_subscription_full_url_py3 import EventSubscriptionFullUrl
from .operation_info_py3 import OperationInfo
from .operation_py3 import Operation
from .input_schema_mapping_py3 import InputSchemaMapping
from .json_field_py3 import JsonField
from .json_field_with_default_py3 import JsonFieldWithDefault
from .json_input_schema_mapping_py3 import JsonInputSchemaMapping
Expand All @@ -37,12 +55,31 @@
from .event_type_py3 import EventType
from .topic_type_info_py3 import TopicTypeInfo
except (SyntaxError, ImportError):
from .input_schema_mapping import InputSchemaMapping
from .domain import Domain
from .domain_update_parameters import DomainUpdateParameters
from .domain_shared_access_keys import DomainSharedAccessKeys
from .domain_regenerate_key_request import DomainRegenerateKeyRequest
from .domain_topic import DomainTopic
from .event_subscription_destination import EventSubscriptionDestination
from .advanced_filter import AdvancedFilter
from .event_subscription_filter import EventSubscriptionFilter
from .retry_policy import RetryPolicy
from .dead_letter_destination import DeadLetterDestination
from .resource import Resource
from .number_in_advanced_filter import NumberInAdvancedFilter
from .storage_blob_dead_letter_destination import StorageBlobDeadLetterDestination
from .number_not_in_advanced_filter import NumberNotInAdvancedFilter
from .number_less_than_advanced_filter import NumberLessThanAdvancedFilter
from .number_greater_than_advanced_filter import NumberGreaterThanAdvancedFilter
from .number_less_than_or_equals_advanced_filter import NumberLessThanOrEqualsAdvancedFilter
from .number_greater_than_or_equals_advanced_filter import NumberGreaterThanOrEqualsAdvancedFilter
from .bool_equals_advanced_filter import BoolEqualsAdvancedFilter
from .string_in_advanced_filter import StringInAdvancedFilter
from .string_not_in_advanced_filter import StringNotInAdvancedFilter
from .string_begins_with_advanced_filter import StringBeginsWithAdvancedFilter
from .string_ends_with_advanced_filter import StringEndsWithAdvancedFilter
from .string_contains_advanced_filter import StringContainsAdvancedFilter
from .web_hook_event_subscription_destination import WebHookEventSubscriptionDestination
from .event_hub_event_subscription_destination import EventHubEventSubscriptionDestination
from .storage_queue_event_subscription_destination import StorageQueueEventSubscriptionDestination
Expand All @@ -52,7 +89,6 @@
from .event_subscription_full_url import EventSubscriptionFullUrl
from .operation_info import OperationInfo
from .operation import Operation
from .input_schema_mapping import InputSchemaMapping
from .json_field import JsonField
from .json_field_with_default import JsonFieldWithDefault
from .json_input_schema_mapping import JsonInputSchemaMapping
Expand All @@ -63,27 +99,49 @@
from .topic_regenerate_key_request import TopicRegenerateKeyRequest
from .event_type import EventType
from .topic_type_info import TopicTypeInfo
from .domain_paged import DomainPaged
from .domain_topic_paged import DomainTopicPaged
from .event_subscription_paged import EventSubscriptionPaged
from .operation_paged import OperationPaged
from .topic_paged import TopicPaged
from .event_type_paged import EventTypePaged
from .topic_type_info_paged import TopicTypeInfoPaged
from .event_grid_management_client_enums import (
DomainProvisioningState,
InputSchema,
EventSubscriptionProvisioningState,
EventDeliverySchema,
TopicProvisioningState,
InputSchema,
ResourceRegionType,
TopicTypeProvisioningState,
)

__all__ = [
'InputSchemaMapping',
'Domain',
'DomainUpdateParameters',
'DomainSharedAccessKeys',
'DomainRegenerateKeyRequest',
'DomainTopic',
'EventSubscriptionDestination',
'AdvancedFilter',
'EventSubscriptionFilter',
'RetryPolicy',
'DeadLetterDestination',
'Resource',
'NumberInAdvancedFilter',
'StorageBlobDeadLetterDestination',
'NumberNotInAdvancedFilter',
'NumberLessThanAdvancedFilter',
'NumberGreaterThanAdvancedFilter',
'NumberLessThanOrEqualsAdvancedFilter',
'NumberGreaterThanOrEqualsAdvancedFilter',
'BoolEqualsAdvancedFilter',
'StringInAdvancedFilter',
'StringNotInAdvancedFilter',
'StringBeginsWithAdvancedFilter',
'StringEndsWithAdvancedFilter',
'StringContainsAdvancedFilter',
'WebHookEventSubscriptionDestination',
'EventHubEventSubscriptionDestination',
'StorageQueueEventSubscriptionDestination',
Expand All @@ -93,7 +151,6 @@
'EventSubscriptionFullUrl',
'OperationInfo',
'Operation',
'InputSchemaMapping',
'JsonField',
'JsonFieldWithDefault',
'JsonInputSchemaMapping',
Expand All @@ -104,15 +161,18 @@
'TopicRegenerateKeyRequest',
'EventType',
'TopicTypeInfo',
'DomainPaged',
'DomainTopicPaged',
'EventSubscriptionPaged',
'OperationPaged',
'TopicPaged',
'EventTypePaged',
'TopicTypeInfoPaged',
'DomainProvisioningState',
'InputSchema',
'EventSubscriptionProvisioningState',
'EventDeliverySchema',
'TopicProvisioningState',
'InputSchema',
'ResourceRegionType',
'TopicTypeProvisioningState',
]
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
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
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'
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'
Loading

0 comments on commit 83725e1

Please sign in to comment.