code: public ResourceGroupExportResultInner exportTemplate(String resourceGroupName, ExportTemplateRequest parameters) {
          return exportTemplateWithServiceResponseAsync(resourceGroupName, parameters).toBlocking().single().body();
      }
docs: Captures the specified resource group as a template.
  
  @param resourceGroupName The name of the resource group to export as a template.
  @param parameters Parameters for exporting 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 ResourceGroupExportResultInner object if successful.