public void DoGetRequest(TablesResource.GetRequest request)
 {
     try
     {
         var response = request.Execute();
         WriteObject(response);
     }
     catch (GoogleApiException ex) when(ex.HttpStatusCode == HttpStatusCode.NotFound)
     {
         ThrowTerminatingError(new ErrorRecord(ex,
                                               $"Error {ex.HttpStatusCode}: Table '{Table}' not found in '{Dataset}'.",
                                               ErrorCategory.ObjectNotFound,
                                               Table));
     }
 }
        private bool ShouldDelete()
        {
            if (!ShouldProcess(TableId) || noToAll)
            {
                return(false);
            }
            else if (Force || yesToAll)
            {
                return(true);
            }
            else
            {
                var tableResponse = new TablesResource.GetRequest(
                    Service, Project, DatasetId, TableId).Execute();

                return((tableResponse.NumRows == 0) || ShouldContinue(
                           GetConfirmationMessage(TableId, tableResponse.NumRows),
                           "Confirm Deletion", ref yesToAll, ref noToAll));
            }
        }