Skip to content

Commit

Permalink
Merge branch 'master' into kibrantn/servicebus/track2-preview6-add-sa…
Browse files Browse the repository at this point in the history
…s-token-auth
  • Loading branch information
KieranBrantnerMagee authored Sep 9, 2020
2 parents f83bf4c + 51511ce commit df456b6
Show file tree
Hide file tree
Showing 50 changed files with 477,420 additions and 185,311 deletions.
1 change: 1 addition & 0 deletions sdk/servicebus/azure-servicebus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* Remove `enable_subscription_partitioning` from `create_topic` and `TopicProperties`
* `get_dead_letter_[queue,subscription]_receiver()` has been removed. To connect to a dead letter queue, utilize the `sub_queue` parameter of `get_[queue,subscription]_receiver()` provided with a value from the `SubQueue` enum
* No longer export `ServiceBusSharedKeyCredential`
* Rename `entity_availability_status` to `availability_status`

## 7.0.0b5 (2020-08-10)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def create_queue(self, name: str, **kwargs) -> QueueProperties:
dead_lettering_on_message_expiration=kwargs.pop("dead_lettering_on_message_expiration", None),
default_message_time_to_live=kwargs.pop("default_message_time_to_live", None),
duplicate_detection_history_time_window=kwargs.pop("duplicate_detection_history_time_window", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
enable_batched_operations=kwargs.pop("enable_batched_operations", None),
enable_express=kwargs.pop("enable_express", None),
enable_partitioning=kwargs.pop("enable_partitioning", None),
Expand Down Expand Up @@ -445,7 +445,7 @@ async def create_topic(self, name: str, **kwargs) -> TopicProperties:
support_ordering=kwargs.pop("support_ordering", None),
auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None),
enable_partitioning=kwargs.pop("enable_partitioning", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
enable_express=kwargs.pop("enable_express", None),
user_metadata=kwargs.pop("user_metadata", None)
)
Expand Down Expand Up @@ -660,7 +660,7 @@ async def create_subscription(
user_metadata=kwargs.pop("user_metadata", None),
forward_dead_lettered_messages_to=kwargs.pop("forward_dead_lettered_messages_to", None),
auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
)
to_create = subscription._to_internal_entity() # type: ignore # pylint:disable=protected-access

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def create_queue(self, name, **kwargs):
dead_lettering_on_message_expiration=kwargs.pop("dead_lettering_on_message_expiration", None),
default_message_time_to_live=kwargs.pop("default_message_time_to_live", None),
duplicate_detection_history_time_window=kwargs.pop("duplicate_detection_history_time_window", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
enable_batched_operations=kwargs.pop("enable_batched_operations", None),
enable_express=kwargs.pop("enable_express", None),
enable_partitioning=kwargs.pop("enable_partitioning", None),
Expand Down Expand Up @@ -446,7 +446,7 @@ def create_topic(self, name, **kwargs):
support_ordering=kwargs.pop("support_ordering", None),
auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None),
enable_partitioning=kwargs.pop("enable_partitioning", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
enable_express=kwargs.pop("enable_express", None),
user_metadata=kwargs.pop("user_metadata", None)
)
Expand Down Expand Up @@ -667,7 +667,7 @@ def create_subscription(self, topic, name, **kwargs):
user_metadata=kwargs.pop("user_metadata", None),
forward_dead_lettered_messages_to=kwargs.pop("forward_dead_lettered_messages_to", None),
auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None),
entity_availability_status=kwargs.pop("entity_availability_status", None),
availability_status=None,
)
to_create = subscription._to_internal_entity() # type: ignore # pylint:disable=protected-access

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ class QueueProperties(DictMixin): # pylint:disable=too-many-instance-attributes
:ivar duplicate_detection_history_time_window: ISO 8601 timeSpan structure that defines the
duration of the duplicate detection history. The default value is 10 minutes.
:type duplicate_detection_history_time_window: ~datetime.timedelta
:ivar entity_availability_status: Availibility status of the entity. Possible values include:
:ivar availability_status: Availibility status of the entity. Possible values include:
"Available", "Limited", "Renaming", "Restoring", "Unknown".
:type entity_availability_status: str or
:type availability_status: str or
~azure.servicebus.management.EntityAvailabilityStatus
:ivar enable_batched_operations: Value that indicates whether server-side batched operations
are enabled.
Expand Down Expand Up @@ -172,7 +172,7 @@ def __init__(
self.dead_lettering_on_message_expiration = extract_kwarg('dead_lettering_on_message_expiration')
self.default_message_time_to_live = extract_kwarg('default_message_time_to_live')
self.duplicate_detection_history_time_window = extract_kwarg('duplicate_detection_history_time_window')
self.entity_availability_status = extract_kwarg('entity_availability_status')
self.availability_status = extract_kwarg('availability_status')
self.enable_batched_operations = extract_kwarg('enable_batched_operations')
self.enable_express = extract_kwarg('enable_express')
self.enable_partitioning = extract_kwarg('enable_partitioning')
Expand All @@ -199,7 +199,7 @@ def _from_internal_entity(cls, name, internal_qd):
dead_lettering_on_message_expiration=internal_qd.dead_lettering_on_message_expiration,
default_message_time_to_live=internal_qd.default_message_time_to_live,
duplicate_detection_history_time_window=internal_qd.duplicate_detection_history_time_window,
entity_availability_status=internal_qd.entity_availability_status,
availability_status=internal_qd.entity_availability_status,
enable_batched_operations=internal_qd.enable_batched_operations,
enable_express=internal_qd.enable_express,
enable_partitioning=internal_qd.enable_partitioning,
Expand All @@ -226,7 +226,7 @@ def _to_internal_entity(self):
self._internal_qd.dead_lettering_on_message_expiration = self.dead_lettering_on_message_expiration
self._internal_qd.default_message_time_to_live = self.default_message_time_to_live
self._internal_qd.duplicate_detection_history_time_window = self.duplicate_detection_history_time_window
self._internal_qd.entity_availability_status = self.entity_availability_status
self._internal_qd.entity_availability_status = self.availability_status
self._internal_qd.enable_batched_operations = self.enable_batched_operations
self._internal_qd.enable_express = self.enable_express
self._internal_qd.enable_partitioning = self.enable_partitioning
Expand Down Expand Up @@ -389,9 +389,9 @@ class TopicProperties(DictMixin): # pylint:disable=too-many-instance-attributes
:ivar enable_partitioning: A value that indicates whether the topic is to be partitioned
across multiple message brokers.
:type enable_partitioning: bool
:ivar entity_availability_status: Availability status of the entity. Possible values include:
:ivar availability_status: Availability status of the entity. Possible values include:
"Available", "Limited", "Renaming", "Restoring", "Unknown".
:type entity_availability_status: str or
:type availability_status: str or
~azure.servicebus.management.EntityAvailabilityStatus
:ivar enable_express: A value that indicates whether Express Entities are enabled. An express
queue holds a message in memory temporarily before writing it to persistent storage.
Expand Down Expand Up @@ -422,7 +422,7 @@ def __init__(
self.support_ordering = extract_kwarg('support_ordering')
self.auto_delete_on_idle = extract_kwarg('auto_delete_on_idle')
self.enable_partitioning = extract_kwarg('enable_partitioning')
self.entity_availability_status = extract_kwarg('entity_availability_status')
self.availability_status = extract_kwarg('availability_status')
self.enable_express = extract_kwarg('enable_express')
self.user_metadata = extract_kwarg('user_metadata')

Expand All @@ -444,7 +444,7 @@ def _from_internal_entity(cls, name, internal_td):
support_ordering=internal_td.support_ordering,
auto_delete_on_idle=internal_td.auto_delete_on_idle,
enable_partitioning=internal_td.enable_partitioning,
entity_availability_status=internal_td.entity_availability_status,
availability_status=internal_td.entity_availability_status,
enable_express=internal_td.enable_express,
user_metadata=internal_td.user_metadata
)
Expand All @@ -466,7 +466,7 @@ def _to_internal_entity(self):
self._internal_td.support_ordering = self.support_ordering
self._internal_td.auto_delete_on_idle = self.auto_delete_on_idle
self._internal_td.enable_partitioning = self.enable_partitioning
self._internal_td.entity_availability_status = self.entity_availability_status
self._internal_td.entity_availability_status = self.availability_status
self._internal_td.enable_express = self.enable_express
self._internal_td.user_metadata = self.user_metadata

Expand Down Expand Up @@ -591,9 +591,9 @@ class SubscriptionProperties(DictMixin): # pylint:disable=too-many-instance-att
:ivar auto_delete_on_idle: ISO 8601 timeSpan idle interval after which the subscription is
automatically deleted. The minimum duration is 5 minutes.
:type auto_delete_on_idle: ~datetime.timedelta
:ivar entity_availability_status: Availability status of the entity. Possible values include:
:ivar availability_status: Availability status of the entity. Possible values include:
"Available", "Limited", "Renaming", "Restoring", "Unknown".
:type entity_availability_status: str or
:type availability_status: str or
~azure.servicebus.management.EntityAvailabilityStatus
"""
def __init__(self, name, **kwargs):
Expand All @@ -617,7 +617,7 @@ def __init__(self, name, **kwargs):
self.user_metadata = extract_kwarg('user_metadata')
self.forward_dead_lettered_messages_to = extract_kwarg('forward_dead_lettered_messages_to')
self.auto_delete_on_idle = extract_kwarg('auto_delete_on_idle')
self.entity_availability_status = extract_kwarg('entity_availability_status')
self.availability_status = extract_kwarg('availability_status')

validate_extraction_missing_args(extraction_missing_args)

Expand All @@ -639,7 +639,7 @@ def _from_internal_entity(cls, name, internal_subscription):
user_metadata=internal_subscription.user_metadata,
forward_dead_lettered_messages_to=internal_subscription.forward_dead_lettered_messages_to,
auto_delete_on_idle=internal_subscription.auto_delete_on_idle,
entity_availability_status=internal_subscription.entity_availability_status
availability_status=internal_subscription.entity_availability_status
)
subscription._internal_sd = deepcopy(internal_subscription)
return subscription
Expand All @@ -661,7 +661,7 @@ def _to_internal_entity(self):
self._internal_sd.user_metadata = self.user_metadata
self._internal_sd.forward_dead_lettered_messages_to = self.forward_dead_lettered_messages_to
self._internal_sd.auto_delete_on_idle = self.auto_delete_on_idle
self._internal_sd.entity_availability_status = self.entity_availability_status
self._internal_sd.entity_availability_status = self.availability_status

return self._internal_sd

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async def test_async_mgmt_queue_create_by_name(self, servicebus_namespace_connec
try:
queue = await mgmt_service.get_queue(queue_name)
assert queue.name == queue_name
assert queue.entity_availability_status == 'Available'
assert queue.availability_status == 'Available'
assert queue.status == 'Active'
# assert created_at < queue.created_at < utc_now() + datetime.timedelta(minutes=10) # TODO: Should be created_at_utc for consistency with dataplane.
finally:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def test_async_mgmt_subscription_create_by_name(self, servicebus_namespace
await mgmt_service.create_subscription(topic_name, subscription_name)
subscription = await mgmt_service.get_subscription(topic_name, subscription_name)
assert subscription.name == subscription_name
assert subscription.entity_availability_status == 'Available'
assert subscription.availability_status == 'Available'
assert subscription.status == 'Active'
finally:
await mgmt_service.delete_subscription(topic_name, subscription_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def test_async_mgmt_topic_create_by_name(self, servicebus_namespace_connec
await mgmt_service.create_topic(topic_name)
topic = await mgmt_service.get_topic(topic_name)
assert topic.name == topic_name
assert topic.entity_availability_status == 'Available'
assert topic.availability_status == 'Available'
assert topic.status == 'Active'
finally:
await mgmt_service.delete_topic(topic_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def test_mgmt_queue_create_by_name(self, servicebus_namespace_connection_string,
try:
queue = mgmt_service.get_queue(queue_name)
assert queue.name == queue_name
assert queue.entity_availability_status == 'Available'
assert queue.availability_status == 'Available'
assert queue.status == 'Active'
# assert created_at < queue.created_at < utc_now() + datetime.timedelta(minutes=10) # TODO: Should be created_at_utc for consistency with dataplane.
finally:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_mgmt_subscription_create_by_name(self, servicebus_namespace_connection_
mgmt_service.create_subscription(topic_name, subscription_name)
subscription = mgmt_service.get_subscription(topic_name, subscription_name)
assert subscription.name == subscription_name
assert subscription.entity_availability_status == 'Available'
assert subscription.availability_status == 'Available'
assert subscription.status == 'Active'
finally:
mgmt_service.delete_subscription(topic_name, subscription_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_mgmt_topic_create_by_name(self, servicebus_namespace_connection_string,
mgmt_service.create_topic(topic_name)
topic = mgmt_service.get_topic(topic_name)
assert topic.name == topic_name
assert topic.entity_availability_status == 'Available'
assert topic.availability_status == 'Available'
assert topic.status == 'Active'
finally:
mgmt_service.delete_topic(topic_name)
Expand Down
5 changes: 5 additions & 0 deletions sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 12.0.0b2 (2020-9-10)
**Breaking changes**
- Change the `continuation_token` from a dict to a str.
- `start_time`/`end_time` and `continuation_token` are mutually exclusive now.

## 12.0.0b1 (2020-07-07)
- Initial Release. Please see the README for information on the new design.
- Support for ChangeFeedClient: get change feed events by page, get all change feed events, get events in a time range
Expand Down
Loading

0 comments on commit df456b6

Please sign in to comment.