/// <summary>
 /// Creates or update the diagnostic settings for the specified storage
 /// service.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Insights.IStorageDiagnosticSettingsOperations.
 /// </param>
 /// <param name='resourceUri'>
 /// Required. The resource identifier of the storage service.
 /// </param>
 /// <param name='parameters'>
 /// Required. The storage diagnostic settings parameters.
 /// </param>
 /// <returns>
 /// Generic empty response. We only pass it to ensure json error
 /// handling
 /// </returns>
 public static EmptyResponse Put(this IStorageDiagnosticSettingsOperations operations, string resourceUri, StorageDiagnosticSettingsPutParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IStorageDiagnosticSettingsOperations)s).PutAsync(resourceUri, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates or update the diagnostic settings for the specified storage
 /// service.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Insights.IStorageDiagnosticSettingsOperations.
 /// </param>
 /// <param name='resourceUri'>
 /// Required. The resource identifier of the storage service.
 /// </param>
 /// <param name='parameters'>
 /// Required. The storage diagnostic settings parameters.
 /// </param>
 /// <returns>
 /// Generic empty response. We only pass it to ensure json error
 /// handling
 /// </returns>
 public static Task<EmptyResponse> PutAsync(this IStorageDiagnosticSettingsOperations operations, string resourceUri, StorageDiagnosticSettingsPutParameters parameters)
 {
     return operations.PutAsync(resourceUri, parameters, CancellationToken.None);
 }