public virtual Response <IscsiTarget> Get(string iscsiTargetName, CancellationToken cancellationToken = default)
        {
            Argument.AssertNotNullOrEmpty(iscsiTargetName, nameof(iscsiTargetName));

            using var scope = _iscsiTargetClientDiagnostics.CreateScope("IscsiTargetCollection.Get");
            scope.Start();
            try
            {
                var response = _iscsiTargetRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, iscsiTargetName, cancellationToken);
                if (response.Value == null)
                {
                    throw _iscsiTargetClientDiagnostics.CreateRequestFailedException(response.GetRawResponse());
                }
                return(Response.FromValue(new IscsiTarget(ArmClient, response.Value), response.GetRawResponse()));
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }
 public virtual Response<IscsiTarget> Get(CancellationToken cancellationToken = default)
 {
     using var scope = _iscsiTargetClientDiagnostics.CreateScope("IscsiTarget.Get");
     scope.Start();
     try
     {
         var response = _iscsiTargetRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
         if (response.Value == null)
             throw _iscsiTargetClientDiagnostics.CreateRequestFailedException(response.GetRawResponse());
         return Response.FromValue(new IscsiTarget(ArmClient, response.Value), response.GetRawResponse());
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }