Skip to content

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush Kadam authored and AayushKadam committed Dec 17, 2024
1 parent a58dde3 commit 4d6584a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions spanner/src/create_backup_schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ function create_backup_schedule(
'backup_schedule' => $backupSchedule,
]);

$operation = $databaseAdminClient->createBackupSchedule($request);
$created_backup_schedule = $databaseAdminClient->createBackupSchedule($request);

printf('Created backup scehedule %s' . PHP_EOL, $operation->getName());
printf('Created backup scehedule %s' . PHP_EOL, $created_backup_schedule->getName());
}
// [END spanner_create_backup_schedule]

Expand Down
4 changes: 2 additions & 2 deletions spanner/src/get_backup_schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ function get_backup_schedule(
'name' => $backupScheduleName,
]);

$operation = $databaseAdminClient->getBackupSchedule($request);
$backup_schedule = $databaseAdminClient->getBackupSchedule($request);

printf('Fetched backup scehedule %s' . PHP_EOL, $operation->getName());
printf('Fetched backup scehedule %s' . PHP_EOL, $backup_schedule->getName());
}
// [END spanner_get_backup_schedule]

Expand Down
4 changes: 2 additions & 2 deletions spanner/src/list_backup_schedules.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ function list_backup_schedules(
$request = new ListBackupSchedulesRequest([
'parent' => $databaseFullName,
]);
$operation = $databaseAdminClient->listBackupSchedules($request);
$backup_schedules = $databaseAdminClient->listBackupSchedules($request);

printf('Backup schedules for database %s' . PHP_EOL, $databaseFullName);
foreach ($operation as $schedule) {
foreach ($backup_schedules as $schedule) {
printf('Backup schedule: %s' . PHP_EOL, $schedule->getName());
}
}
Expand Down
4 changes: 2 additions & 2 deletions spanner/src/update_backup_schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ function update_backup_schedule(
'update_mask' => $fieldMask,
]);

$operation = $databaseAdminClient->updateBackupSchedule($request);
$updated_backup_schedule = $databaseAdminClient->updateBackupSchedule($request);

printf('Updated backup scehedule %s' . PHP_EOL, $operation->getName());
printf('Updated backup scehedule %s' . PHP_EOL, $updated_backup_schedule->getName());
}
// [END spanner_update_backup_schedule]

Expand Down

0 comments on commit 4d6584a

Please sign in to comment.