code: public Observable<DeploymentExportResultInner> exportTemplateAsync(String resourceGroupName, String deploymentName) {
          return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<DeploymentExportResultInner>, DeploymentExportResultInner>() {
              @Override
              public DeploymentExportResultInner call(ServiceResponse<DeploymentExportResultInner> response) {
                  return response.body();
              }
          });
      }
docs: Exports the template used for specified deployment.
  
  @param resourceGroupName The name of the resource group. The name is case insensitive.
  @param deploymentName The name of the deployment from which to get the template.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the DeploymentExportResultInner object