code: public DeploymentExportResultInner exportTemplate(String resourceGroupName, String deploymentName) {
          return exportTemplateWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().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
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DeploymentExportResultInner object if successful.