public Observable<EventSubscriptionInner> beginUpdateAsync(String scope, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) {
        return beginUpdateWithServiceResponseAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters).map(new Func1<ServiceResponse<EventSubscriptionInner>, EventSubscriptionInner>() {
            @Override
            public EventSubscriptionInner call(ServiceResponse<EventSubscriptionInner> response) {
                return response.body();
            }
        });
    }
public Observable < EventSubscriptionInner > beginUpdateAsync ( String scope , String eventSubscriptionName , EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters ) { return beginUpdateWithServiceResponseAsync ( scope , eventSubscriptionName , eventSubscriptionUpdateParameters ) . map ( new Func1 < ServiceResponse < EventSubscriptionInner > , EventSubscriptionInner > ( ) { @ Override public EventSubscriptionInner call ( ServiceResponse < EventSubscriptionInner > response ) { return response . body ( ) ; } } ) ; }
Update an event subscription.
Asynchronously updates an existing event subscription.

@param scope 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 eventSubscriptionName Name of the event subscription to be updated
@param eventSubscriptionUpdateParameters Updated event subscription information
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the EventSubscriptionInner object