Skip to content

Commit 075fb82

Browse files
authored
Merge pull request GoogleCloudPlatform#469 from GoogleCloudPlatform/storage-minor-updates
Updated storage library version and variable name
2 parents e9e8458 + c05a0a2 commit 075fb82

File tree

3 files changed

+46
-48
lines changed

3 files changed

+46
-48
lines changed

storage/api/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"google/cloud-storage": "^1.0",
3+
"google/cloud-storage": "^1.2",
44
"paragonie/random_compat": "^2.0",
55
"symfony/console": " ^3.0"
66
},

storage/api/composer.lock

Lines changed: 43 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storage/api/src/functions/download_file_requester_pays.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function download_file_requester_pays($projectId, $bucketName, $objectName, $des
4141
$storage = new StorageClient([
4242
'projectId' => $projectId
4343
]);
44-
$requesterPays = true;
45-
$bucket = $storage->bucket($bucketName, $requesterPays);
44+
$userProject = true;
45+
$bucket = $storage->bucket($bucketName, $userProject);
4646
$object = $bucket->object($objectName);
4747
$object->downloadToFile($destination);
4848
printf('Downloaded gs://%s/%s to %s using requester-pays requests.' . PHP_EOL,

0 commit comments

Comments
 (0)