class_docstr: Update an Azure ServiceBus Topic Subscription under a ServiceBus Namespace.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:AzureServiceBusUpdateSubscriptionOperator`
  
  :param topic_name: The topic that will own the to-be-created subscription.
  :param subscription_name: Name of the subscription that need to be created.
  :param max_delivery_count: The maximum delivery count. A message is automatically dead lettered
      after this number of deliveries. Default value is 10.
  :param dead_lettering_on_message_expiration: A value that indicates whether this subscription
      has dead letter support when a message expires.
  :param enable_batched_operations: Value that indicates whether server-side batched
      operations are enabled.
  :param azure_service_bus_conn_id: Reference to the
      :ref:`Azure Service Bus connection<howto/connection:azure_service_bus>`.
class_docstr_tok: ["Update","an","Azure","ServiceBus","Topic","Subscription","under","a","ServiceBus","Namespace",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","AzureServiceBusUpdateSubscriptionOperator","`",":","param","topic_name",":","The","topic","that","will","own","the","to-be-created","subscription",".",":","param","subscription_name",":","Name","of","the","subscription","that","need","to","be","created",".",":","param","max_delivery_count",":","The","maximum","delivery","count",".","A","message","is","automatically","dead","lettered","after","this","number","of","deliveries",".","Default","value","is","10.",":","param","dead_lettering_on_message_expiration",":","A","value","that","indicates","whether","this","subscription","has","dead","letter","support","when","a","message","expires",".",":","param","enable_batched_operations",":","Value","that","indicates","whether","server-side","batched","operations","are","enabled",".",":","param","azure_service_bus_conn_id",":","Reference","to","the",":","ref",":","`","Azure","Service","Bus","connection","<","howto\/connection",":","azure_service_bus",">","`","."]
docstr: Updates Subscription properties, by connecting to Service Bus Admin client.
docstr_tok: ["Updates","Subscription","properties",",","by","connecting","to","Service","Bus","Admin","client","."]
code: def execute(self, context: Context) -> None:
      """Updates Subscription properties, by connecting to Service Bus Admin client."""
      hook = AdminClientHook(
          azure_service_bus_conn_id=self.azure_service_bus_conn_id
      )
  
      with hook.get_conn() as service_mgmt_conn:
          subscription_prop = service_mgmt_conn.get_subscription(
              self.topic_name, self.subscription_name
          )
          if self.max_delivery_count:
              subscription_prop.max_delivery_count = (
                  self.max_delivery_count
              )
          if self.dl_on_message_expiration is not None:
              subscription_prop.dead_lettering_on_message_expiration = (
                  self.dl_on_message_expiration
              )
          if self.enable_batched_operations is not None:
              subscription_prop.enable_batched_operations = (
                  self.enable_batched_operations
              )
          # update by updating the properties in the model
          service_mgmt_conn.update_subscription(
              self.topic_name, subscription_prop
          )
          updated_subscription = service_mgmt_conn.get_subscription(
              self.topic_name, self.subscription_name
          )
          self.log.info(
              "Subscription Updated successfully %s",
              updated_subscription,
          )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Sequence
  from azure.core.exceptions import ResourceNotFoundError
  from airflow.models import BaseOperator
  from airflow.providers.microsoft.azure.hooks.asb import AdminClientHook, MessageHook
label_desc: Use image node_id 2 for calling the AzureServiceBusUpdateSubscriptionOperator obj's underlying member method code with example usage: obj.execute(context) without return types