code: public Observable<RegistryPoliciesInner> beginUpdatePoliciesAsync(String resourceGroupName, String registryName, RegistryPoliciesInner registryPoliciesUpdateParameters) {
          return beginUpdatePoliciesWithServiceResponseAsync(resourceGroupName, registryName, registryPoliciesUpdateParameters).map(new Func1<ServiceResponse<RegistryPoliciesInner>, RegistryPoliciesInner>() {
              @Override
              public RegistryPoliciesInner call(ServiceResponse<RegistryPoliciesInner> response) {
                  return response.body();
              }
          });
      }
docs: Updates the policies for the specified container registry.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param registryPoliciesUpdateParameters The parameters for updating policies of a container registry.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RegistryPoliciesInner object