diff --git a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/__init__.py b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/__init__.py index d9d26c564598..e85a2cba0ef4 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/__init__.py +++ b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/__init__.py @@ -123,8 +123,8 @@ IPAction, SkuName, SkuTier, - KeySource, IdentityType, + KeySource, PrivateLinkConnectionStatus, EndPointProvisioningState, NetworkRuleIPAction, @@ -205,8 +205,8 @@ 'IPAction', 'SkuName', 'SkuTier', - 'KeySource', 'IdentityType', + 'KeySource', 'PrivateLinkConnectionStatus', 'EndPointProvisioningState', 'NetworkRuleIPAction', diff --git a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models.py b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models.py index 15d01822351f..ab521a85d3cb 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models.py +++ b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models.py @@ -1352,6 +1352,8 @@ class SBNamespace(TrackedResource): :type tags: dict[str, str] :param sku: Properties of SKU :type sku: ~azure.mgmt.servicebus.models.SBSku + :param identity: Properties of BYOK Identity description + :type identity: ~azure.mgmt.servicebus.models.Identity :ivar provisioning_state: Provisioning state of the namespace. :vartype provisioning_state: str :ivar created_at: The time the namespace was created @@ -1389,6 +1391,7 @@ class SBNamespace(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'SBSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, @@ -1401,6 +1404,7 @@ class SBNamespace(TrackedResource): def __init__(self, **kwargs): super(SBNamespace, self).__init__(**kwargs) self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) self.provisioning_state = None self.created_at = None self.updated_at = None diff --git a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models_py3.py b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models_py3.py index a5841376faec..f6296491e2fb 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models_py3.py +++ b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_models_py3.py @@ -1352,6 +1352,8 @@ class SBNamespace(TrackedResource): :type tags: dict[str, str] :param sku: Properties of SKU :type sku: ~azure.mgmt.servicebus.models.SBSku + :param identity: Properties of BYOK Identity description + :type identity: ~azure.mgmt.servicebus.models.Identity :ivar provisioning_state: Provisioning state of the namespace. :vartype provisioning_state: str :ivar created_at: The time the namespace was created @@ -1389,6 +1391,7 @@ class SBNamespace(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'SBSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, @@ -1398,9 +1401,10 @@ class SBNamespace(TrackedResource): 'encryption': {'key': 'properties.encryption', 'type': 'Encryption'}, } - def __init__(self, *, location: str, tags=None, sku=None, zone_redundant: bool=None, encryption=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, sku=None, identity=None, zone_redundant: bool=None, encryption=None, **kwargs) -> None: super(SBNamespace, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku + self.identity = identity self.provisioning_state = None self.created_at = None self.updated_at = None diff --git a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_service_bus_management_client_enums.py b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_service_bus_management_client_enums.py index 063448efd5fd..65f10f467ed5 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_service_bus_management_client_enums.py +++ b/sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/_service_bus_management_client_enums.py @@ -32,14 +32,14 @@ class SkuTier(str, Enum): premium = "Premium" -class KeySource(str, Enum): +class IdentityType(str, Enum): - microsoft_key_vault = "Microsoft.KeyVault" + system_assigned = "SystemAssigned" -class IdentityType(str, Enum): +class KeySource(str, Enum): - system_assigned = "SystemAssigned" + microsoft_key_vault = "Microsoft.KeyVault" class PrivateLinkConnectionStatus(str, Enum):