/// <summary>
 /// Gets a specific Compute diagnostic for a subscription in a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location used to execute the diagnostic operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeDiagnosticBase> GetAsync(this IDiskInspectionOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates a request for executing disk Inspection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location used to execute the diagnostic operation.
 /// </param>
 /// <param name='runDiskInspectionInput'>
 /// RunDiskInspection object supplied in the body of the Post run disk
 /// inspection operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> CreateAsync(this IDiskInspectionOperations operations, string location, RunDiskInspectionInput runDiskInspectionInput, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(location, runDiskInspectionInput, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets a specific Compute diagnostic for a subscription in a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location used to execute the diagnostic operation.
 /// </param>
 public static ComputeDiagnosticBase Get(this IDiskInspectionOperations operations, string location)
 {
     return(operations.GetAsync(location).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a request for executing disk Inspection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location used to execute the diagnostic operation.
 /// </param>
 /// <param name='runDiskInspectionInput'>
 /// RunDiskInspection object supplied in the body of the Post run disk
 /// inspection operation.
 /// </param>
 public static string Create(this IDiskInspectionOperations operations, string location, RunDiskInspectionInput runDiskInspectionInput)
 {
     return(operations.CreateAsync(location, runDiskInspectionInput).GetAwaiter().GetResult());
 }