def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
      response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
      response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Update an event subscription

 Asynchronously updates an existing event subscription.

 @param scope [String] The scope of existing event subscription. The scope can
 be a subscription, or a resource group, or a top level resource belonging to
 a resource provider namespace, or an EventGrid topic. For example, use
 '/subscriptions/{subscriptionId}/' for a subscription,
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
 resource group, and
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
 for a resource, and
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
 for an EventGrid topic.
 @param event_subscription_name [String] Name of the event subscription to be
 created
 @param event_subscription_update_parameters
 [EventSubscriptionUpdateParameters] Updated event subscription information
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [EventSubscription] operation results.