code: public Observable<RegenerateKeyOutputInner> regenerateKeyAsync(String resourceGroupName, String mediaServiceName, KeyType keyType) {
          return regenerateKeyWithServiceResponseAsync(resourceGroupName, mediaServiceName, keyType).map(new Func1<ServiceResponse<RegenerateKeyOutputInner>, RegenerateKeyOutputInner>() {
              @Override
              public RegenerateKeyOutputInner call(ServiceResponse<RegenerateKeyOutputInner> response) {
                  return response.body();
              }
          });
      }
docs: Regenerates a primary or secondary key for a Media Service.
  
  @param resourceGroupName Name of the resource group within the Azure subscription.
  @param mediaServiceName Name of the Media Service.
  @param keyType The keyType indicating which key you want to regenerate, Primary or Secondary. Possible values include: 'Primary', 'Secondary'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RegenerateKeyOutputInner object