public async virtual Task <Response <LedgerDigestUploads> > GetAsync(LedgerDigestUploadsName ledgerDigestUploads, CancellationToken cancellationToken = default) { using var scope = _ledgerDigestUploadsLedgerDigestUploadsClientDiagnostics.CreateScope("LedgerDigestUploadsCollection.Get"); scope.Start(); try { var response = await _ledgerDigestUploadsLedgerDigestUploadsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ledgerDigestUploads, cancellationToken).ConfigureAwait(false); if (response.Value == null) { throw await _ledgerDigestUploadsLedgerDigestUploadsClientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); } return(Response.FromValue(new LedgerDigestUploads(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }