Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-eventgrid] fix: java tag error #731

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from ._models_py3 import DomainUpdateParameters
from ._models_py3 import EventChannel
from ._models_py3 import EventChannelDestination
from ._models_py3 import EventChannelFilter
from ._models_py3 import EventChannelSource
from ._models_py3 import EventHubEventSubscriptionDestination
from ._models_py3 import EventSubscription
Expand Down Expand Up @@ -68,8 +69,6 @@
from ._models_py3 import RetryPolicy
from ._models_py3 import ServiceBusQueueEventSubscriptionDestination
from ._models_py3 import ServiceBusTopicEventSubscriptionDestination
from ._models_py3 import SkuDefinitionsForResourceType
from ._models_py3 import SkuDefinitionsForResourceTypeListResult
from ._models_py3 import StorageBlobDeadLetterDestination
from ._models_py3 import StorageQueueEventSubscriptionDestination
from ._models_py3 import StringBeginsWithAdvancedFilter
Expand Down Expand Up @@ -102,6 +101,7 @@
from ._models import DomainUpdateParameters
from ._models import EventChannel
from ._models import EventChannelDestination
from ._models import EventChannelFilter
from ._models import EventChannelSource
from ._models import EventHubEventSubscriptionDestination
from ._models import EventSubscription
Expand Down Expand Up @@ -146,8 +146,6 @@
from ._models import RetryPolicy
from ._models import ServiceBusQueueEventSubscriptionDestination
from ._models import ServiceBusTopicEventSubscriptionDestination
from ._models import SkuDefinitionsForResourceType
from ._models import SkuDefinitionsForResourceTypeListResult
from ._models import StorageBlobDeadLetterDestination
from ._models import StorageQueueEventSubscriptionDestination
from ._models import StringBeginsWithAdvancedFilter
Expand Down Expand Up @@ -219,6 +217,7 @@
'DomainUpdateParameters',
'EventChannel',
'EventChannelDestination',
'EventChannelFilter',
'EventChannelSource',
'EventHubEventSubscriptionDestination',
'EventSubscription',
Expand Down Expand Up @@ -263,8 +262,6 @@
'RetryPolicy',
'ServiceBusQueueEventSubscriptionDestination',
'ServiceBusTopicEventSubscriptionDestination',
'SkuDefinitionsForResourceType',
'SkuDefinitionsForResourceTypeListResult',
'StorageBlobDeadLetterDestination',
'StorageQueueEventSubscriptionDestination',
'StringBeginsWithAdvancedFilter',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class CloudError(Model):


class ConnectionState(Model):
"""ConnectionState Information.
"""ConnectionState information.

:param status: Status of the connection. Possible values include:
'Pending', 'Approved', 'Rejected', 'Disconnected'
Expand Down Expand Up @@ -587,6 +587,8 @@ class EventChannel(Resource):
'Canceled', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.eventgrid.models.EventChannelProvisioningState
:param filter: Information about the filter for the event channel.
:type filter: ~azure.mgmt.eventgrid.models.EventChannelFilter
"""

_validation = {
Expand All @@ -603,13 +605,15 @@ class EventChannel(Resource):
'source': {'key': 'properties.source', 'type': 'EventChannelSource'},
'destination': {'key': 'properties.destination', 'type': 'EventChannelDestination'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'filter': {'key': 'properties.filter', 'type': 'EventChannelFilter'},
}

def __init__(self, **kwargs):
super(EventChannel, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.destination = kwargs.get('destination', None)
self.provisioning_state = None
self.filter = kwargs.get('filter', None)


class EventChannelDestination(Model):
Expand Down Expand Up @@ -643,6 +647,48 @@ def __init__(self, **kwargs):
self.partner_topic_name = kwargs.get('partner_topic_name', None)


class EventChannelFilter(Model):
"""Filter for the Event Channel.

:param subject_begins_with: An optional string to filter events for an
event channel based on a resource path prefix.
The format of this depends on the publisher of the events. Wildcard
characters are not supported in this path.
:type subject_begins_with: str
:param subject_ends_with: An optional string to filter events for an event
channel based on a resource path suffix.
Wildcard characters are not supported in this path.
:type subject_ends_with: str
:param included_event_types: A list of applicable event types that need to
be part of the event channel. If it is desired to subscribe to all default
event types, set the IncludedEventTypes to null.
:type included_event_types: list[str]
:param is_subject_case_sensitive: Specifies if the SubjectBeginsWith and
SubjectEndsWith properties of the filter
should be compared in a case sensitive manner.
:type is_subject_case_sensitive: bool
:param advanced_filters: An array of advanced filters that are used for
filtering event channels.
:type advanced_filters: list[~azure.mgmt.eventgrid.models.AdvancedFilter]
"""

_attribute_map = {
'subject_begins_with': {'key': 'subjectBeginsWith', 'type': 'str'},
'subject_ends_with': {'key': 'subjectEndsWith', 'type': 'str'},
'included_event_types': {'key': 'includedEventTypes', 'type': '[str]'},
'is_subject_case_sensitive': {'key': 'isSubjectCaseSensitive', 'type': 'bool'},
'advanced_filters': {'key': 'advancedFilters', 'type': '[AdvancedFilter]'},
}

def __init__(self, **kwargs):
super(EventChannelFilter, self).__init__(**kwargs)
self.subject_begins_with = kwargs.get('subject_begins_with', None)
self.subject_ends_with = kwargs.get('subject_ends_with', None)
self.included_event_types = kwargs.get('included_event_types', None)
self.is_subject_case_sensitive = kwargs.get('is_subject_case_sensitive', None)
self.advanced_filters = kwargs.get('advanced_filters', None)


class EventChannelSource(Model):
"""Properties of the source of an event channel.

Expand Down Expand Up @@ -1725,6 +1771,8 @@ def __init__(self, **kwargs):
class PartnerRegistrationUpdateParameters(Model):
"""Properties of the Partner Registration update.

:param tags: Tags of the partner registration resource.
:type tags: dict[str, str]
:param partner_topic_type_name: Name of the partner topic type.
:type partner_topic_type_name: str
:param partner_topic_type_display_name: Display name of the partner topic
Expand All @@ -1750,6 +1798,7 @@ class PartnerRegistrationUpdateParameters(Model):
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'partner_topic_type_name': {'key': 'partnerTopicTypeName', 'type': 'str'},
'partner_topic_type_display_name': {'key': 'partnerTopicTypeDisplayName', 'type': 'str'},
'partner_topic_type_description': {'key': 'partnerTopicTypeDescription', 'type': 'str'},
Expand All @@ -1760,6 +1809,7 @@ class PartnerRegistrationUpdateParameters(Model):

def __init__(self, **kwargs):
super(PartnerRegistrationUpdateParameters, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.partner_topic_type_name = kwargs.get('partner_topic_type_name', None)
self.partner_topic_type_display_name = kwargs.get('partner_topic_type_display_name', None)
self.partner_topic_type_description = kwargs.get('partner_topic_type_description', None)
Expand Down Expand Up @@ -1936,7 +1986,7 @@ def __init__(self, **kwargs):


class PrivateEndpointConnection(Resource):
"""PrivateEndpointConnection resource information.
"""PrivateEndpointConnection.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -2122,47 +2172,6 @@ def __init__(self, **kwargs):
self.endpoint_type = 'ServiceBusTopic'


class SkuDefinitionsForResourceType(Model):
"""Describes an EventGrid Resource Sku Definition.

:param resource_type: The Resource Type applicable for the Sku.
:type resource_type: str
:param skus: The Sku pricing tiers for the resource type.
:type skus: list[~azure.mgmt.eventgrid.models.ResourceSku]
"""

_attribute_map = {
'resource_type': {'key': 'resourceType', 'type': 'str'},
'skus': {'key': 'skus', 'type': '[ResourceSku]'},
}

def __init__(self, **kwargs):
super(SkuDefinitionsForResourceType, self).__init__(**kwargs)
self.resource_type = kwargs.get('resource_type', None)
self.skus = kwargs.get('skus', None)


class SkuDefinitionsForResourceTypeListResult(Model):
"""List collection of Sku Definitions for each Resource Type.

:param value: A collection of Sku Definitions for each Resource Type.
:type value:
list[~azure.mgmt.eventgrid.models.SkuDefinitionsForResourceType]
:param next_link: A link for the next page of Sku Definitions.
:type next_link: str
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[SkuDefinitionsForResourceType]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SkuDefinitionsForResourceTypeListResult, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.next_link = kwargs.get('next_link', None)


class StorageBlobDeadLetterDestination(DeadLetterDestination):
"""Information about the storage blob based dead letter destination.

Expand Down Expand Up @@ -2471,7 +2480,7 @@ class Topic(TrackedResource):
:type location: str
:param tags: Tags of the resource.
:type tags: dict[str, str]
:param private_endpoint_connections: List of private endpoint connections.
:param private_endpoint_connections:
:type private_endpoint_connections:
list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection]
:ivar provisioning_state: Provisioning state of the topic. Possible values
Expand Down
Loading