code: public Observable<ServiceResponse<ServiceEndpointPolicyInner>> updateWithServiceResponseAsync(String resourceGroupName, String serviceEndpointPolicyName) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (serviceEndpointPolicyName == null) {
              throw new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          final String apiVersion = "2018-07-01";
          final Map<String, String> tags = null;
          TagsObject parameters = new TagsObject();
          parameters.withTags(null);
          Observable<Response<ResponseBody>> observable = service.update(resourceGroupName, serviceEndpointPolicyName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ServiceEndpointPolicyInner>() { }.getType());
      }
docs: Updates service Endpoint Policies.
  
  @param resourceGroupName The name of the resource group.
  @param serviceEndpointPolicyName The name of the service endpoint policy.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request