Skip to content

Commit

Permalink
[ServiceBus] Automatic PR from RestAPI-PR2267 (Azure#1816)
Browse files Browse the repository at this point in the history
* Generated from 5942709

* Update version.py

* Update HISTORY.rst
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 21, 2018
1 parent 0c652a9 commit 13ad6a9
Show file tree
Hide file tree
Showing 30 changed files with 193 additions and 119 deletions.
5 changes: 5 additions & 0 deletions azure-mgmt-servicebus/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.4.1 (XXXXXXXXXX)
++++++++++++++++++

- Add dead_lettering_on_filter_evaluation_exceptions

0.4.0 (2017-12-12)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class AccessKeys(Model):
}

def __init__(self):
super(AccessKeys, self).__init__()
self.primary_connection_string = None
self.secondary_connection_string = None
self.alias_primary_connection_string = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Action(Model):
}

def __init__(self, sql_expression=None, compatibility_level=None, requires_preprocessing=True):
super(Action, self).__init__()
self.sql_expression = sql_expression
self.compatibility_level = compatibility_level
self.requires_preprocessing = requires_preprocessing
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ class AuthorizationRuleProperties(Model):
}

def __init__(self, rights):
super(AuthorizationRuleProperties, self).__init__()
self.rights = rights
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class CaptureDescription(Model):
}

def __init__(self, enabled=None, encoding=None, interval_in_seconds=None, size_limit_in_bytes=None, destination=None):
super(CaptureDescription, self).__init__()
self.enabled = enabled
self.encoding = encoding
self.interval_in_seconds = interval_in_seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ class CheckNameAvailability(Model):
}

def __init__(self, name):
super(CheckNameAvailability, self).__init__()
self.name = name
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class CheckNameAvailabilityResult(Model):
}

def __init__(self, name_available=None, reason=None):
super(CheckNameAvailabilityResult, self).__init__()
self.message = None
self.name_available = name_available
self.reason = reason
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class CorrelationFilter(Model):
}

def __init__(self, correlation_id=None, message_id=None, to=None, reply_to=None, label=None, session_id=None, reply_to_session_id=None, content_type=None, requires_preprocessing=True):
super(CorrelationFilter, self).__init__()
self.correlation_id = correlation_id
self.message_id = message_id
self.to = to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Destination(Model):
}

def __init__(self, name=None, storage_account_resource_id=None, blob_container=None, archive_name_format=None):
super(Destination, self).__init__()
self.name = name
self.storage_account_resource_id = storage_account_resource_id
self.blob_container = blob_container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ErrorResponse(Model):
}

def __init__(self, code=None, message=None):
super(ErrorResponse, self).__init__()
self.code = code
self.message = message

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class MessageCountDetails(Model):
}

def __init__(self):
super(MessageCountDetails, self).__init__()
self.active_message_count = None
self.dead_letter_message_count = None
self.scheduled_message_count = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ class Operation(Model):
}

def __init__(self, display=None):
super(Operation, self).__init__()
self.name = None
self.display = display
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class OperationDisplay(Model):
}

def __init__(self):
super(OperationDisplay, self).__init__()
self.provider = None
self.resource = None
self.operation = None
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ class PremiumMessagingRegionsProperties(Model):
}

def __init__(self):
super(PremiumMessagingRegionsProperties, self).__init__()
self.code = None
self.full_name = None
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ class RegenerateAccessKeyParameters(Model):
}

def __init__(self, key_type, key=None):
super(RegenerateAccessKeyParameters, self).__init__()
self.key_type = key_type
self.key = key
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Resource(Model):
}

def __init__(self):
super(Resource, self).__init__()
self.id = None
self.name = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class SBSku(Model):
}

def __init__(self, name, tier=None, capacity=None):
super(SBSku, self).__init__()
self.name = name
self.tier = tier
self.capacity = capacity
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class SBSubscription(Resource):
from when the message is sent to Service Bus. This is the default value
used when TimeToLive is not set on a message itself.
:type default_message_time_to_live: timedelta
:param dead_lettering_on_filter_evaluation_exceptions: Value that
indicates whether a subscription has dead letter support on filter
evaluation exceptions.
:type dead_lettering_on_filter_evaluation_exceptions: bool
:param dead_lettering_on_message_expiration: Value that indicates whether
a subscription has dead letter support when a message expires.
:type dead_lettering_on_message_expiration: bool
Expand Down Expand Up @@ -96,6 +100,7 @@ class SBSubscription(Resource):
'lock_duration': {'key': 'properties.lockDuration', 'type': 'duration'},
'requires_session': {'key': 'properties.requiresSession', 'type': 'bool'},
'default_message_time_to_live': {'key': 'properties.defaultMessageTimeToLive', 'type': 'duration'},
'dead_lettering_on_filter_evaluation_exceptions': {'key': 'properties.deadLetteringOnFilterEvaluationExceptions', 'type': 'bool'},
'dead_lettering_on_message_expiration': {'key': 'properties.deadLetteringOnMessageExpiration', 'type': 'bool'},
'duplicate_detection_history_time_window': {'key': 'properties.duplicateDetectionHistoryTimeWindow', 'type': 'duration'},
'max_delivery_count': {'key': 'properties.maxDeliveryCount', 'type': 'int'},
Expand All @@ -106,7 +111,7 @@ class SBSubscription(Resource):
'forward_dead_lettered_messages_to': {'key': 'properties.forwardDeadLetteredMessagesTo', 'type': 'str'},
}

def __init__(self, lock_duration=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, max_delivery_count=None, status=None, enable_batched_operations=None, auto_delete_on_idle=None, forward_to=None, forward_dead_lettered_messages_to=None):
def __init__(self, lock_duration=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_filter_evaluation_exceptions=None, dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, max_delivery_count=None, status=None, enable_batched_operations=None, auto_delete_on_idle=None, forward_to=None, forward_dead_lettered_messages_to=None):
super(SBSubscription, self).__init__()
self.message_count = None
self.created_at = None
Expand All @@ -116,6 +121,7 @@ def __init__(self, lock_duration=None, requires_session=None, default_message_ti
self.lock_duration = lock_duration
self.requires_session = requires_session
self.default_message_time_to_live = default_message_time_to_live
self.dead_lettering_on_filter_evaluation_exceptions = dead_lettering_on_filter_evaluation_exceptions
self.dead_lettering_on_message_expiration = dead_lettering_on_message_expiration
self.duplicate_detection_history_time_window = duplicate_detection_history_time_window
self.max_delivery_count = max_delivery_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SqlFilter(Model):
}

def __init__(self, sql_expression=None, requires_preprocessing=True):
super(SqlFilter, self).__init__()
self.sql_expression = sql_expression
self.compatibility_level = None
self.requires_preprocessing = requires_preprocessing
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def check_name_availability_method(
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
request, header_parameters, body_content, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -161,7 +161,7 @@ def internal_paging(next_link=None, raw=False):
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -238,7 +238,7 @@ def create_or_update(
# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
request, header_parameters, body_content, stream=False, **operation_config)

if response.status_code not in [200, 201]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -301,7 +301,7 @@ def delete(

# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -359,7 +359,7 @@ def get(

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -423,7 +423,7 @@ def break_pairing(

# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -480,7 +480,7 @@ def fail_over(

# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -545,7 +545,7 @@ def internal_paging(next_link=None, raw=False):
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -613,7 +613,7 @@ def get_authorization_rule(

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down Expand Up @@ -680,7 +680,7 @@ def list_keys(

# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def internal_paging(next_link=None, raw=False):
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand Down
Loading

0 comments on commit 13ad6a9

Please sign in to comment.