public async Task <IResourceGroupExportResult> ExportTemplateAsync(ResourceGroupExportTemplateOptions options, CancellationToken cancellationToken = default(CancellationToken))
        {
            ExportTemplateRequestInner inner = new ExportTemplateRequestInner();

            inner.Resources = new List <string>()
            {
                "*"
            };
            inner.Options = EnumNameAttribute.GetName(options);
            var result = await client.ExportTemplateWithHttpMessagesAsync(Name, inner, cancellationToken : cancellationToken);

            return(new ResourceGroupExportResultImpl(result.Body));
        }
 /// <summary>
 /// Captures the specified resource group as a template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to be created or updated.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the export template resource group operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ResourceGroupExportResultInner> ExportTemplateAsync(this IResourceGroupsOperations operations, string resourceGroupName, ExportTemplateRequestInner parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ExportTemplateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }