code: public Observable<RedisAccessKeysInner> regenerateKeyAsync(String resourceGroupName, String name, RedisKeyType keyType) {
          return regenerateKeyWithServiceResponseAsync(resourceGroupName, name, keyType).map(new Func1<ServiceResponse<RedisAccessKeysInner>, RedisAccessKeysInner>() {
              @Override
              public RedisAccessKeysInner call(ServiceResponse<RedisAccessKeysInner> response) {
                  return response.body();
              }
          });
      }
docs: Regenerate Redis cache's access keys. This operation requires write permission to the cache resource.
  
  @param resourceGroupName The name of the resource group.
  @param name The name of the Redis cache.
  @param keyType The Redis access key to regenerate. Possible values include: 'Primary', 'Secondary'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RedisAccessKeysInner object