Skip to content

Commit

Permalink
[AutoPR] eventgrid/resource-manager (#2902)
Browse files Browse the repository at this point in the history
* 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
AutorestCI authored and lmazuel committed Oct 26, 2018
1 parent ce09935 commit cf1df01
Show file tree
Hide file tree
Showing 72 changed files with 3,247 additions and 259 deletions.
20 changes: 17 additions & 3 deletions azure-mgmt-eventgrid/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
Release History
===============

2.0.0rc2 (2018-10-24)
+++++++++++++++++++++

**Features**

- Model EventSubscriptionFilter has a new parameter advanced_filters
- Model EventSubscriptionUpdateParameters has a new parameter expiration_time_utc
- Model EventSubscription has a new parameter expiration_time_utc
- Added operation EventSubscriptionsOperations.list_by_domain_topic
- Added operation group DomainTopicsOperations
- Added operation group DomainsOperations

Internal API version is 2018-09-15-preview

2.0.0rc1 (2018-05-04)
+++++++++++++++++++++

Expand All @@ -14,9 +28,9 @@ Release History
- delivering events to Azure Storage queue and Azure hybrid connections
- deadlettering
- retry policies
- manual subscription validation handshake validation.
- manual subscription validation handshake validation.

Internal API version is 2018-05-01-preview
Internal API version is 2018-05-01-preview

1.0.0 (2018-04-26)
++++++++++++++++++
Expand All @@ -39,7 +53,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
Expand Down
3 changes: 3 additions & 0 deletions azure-mgmt-eventgrid/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

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'
Loading

0 comments on commit cf1df01

Please sign in to comment.