/// <summary>
 /// Get metadata for deploying a package to the given resource group
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.ITemplateOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters for operation
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static GetDeploymentTemplateMetadataResponse GetMetadata(this ITemplateOperations operations, GetDeploymentMetadataRequest parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ITemplateOperations)s).GetMetadataAsync(parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Get metadata for deploying a package to the given resource group
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.ITemplateOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters for operation
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<GetDeploymentTemplateMetadataResponse> GetMetadataAsync(this ITemplateOperations operations, GetDeploymentMetadataRequest parameters)
 {
     return operations.GetMetadataAsync(parameters, CancellationToken.None);
 }