Skip to content

Commit 6e6fd0a

Browse files
authored
fix: updates all storage sample region tags (GoogleCloudPlatform#1035)
1 parent 1ccdf6d commit 6e6fd0a

35 files changed

+70
-70
lines changed

storage/src/add_bucket_acl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_bucket_acl]
26+
# [START storage_add_bucket_owner]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -45,4 +45,4 @@ function add_bucket_acl($bucketName, $entity, $role, $options = [])
4545
$acl->add($entity, $role, $options);
4646
printf('Added %s (%s) to gs://%s ACL' . PHP_EOL, $entity, $role, $bucketName);
4747
}
48-
# [END add_bucket_acl]
48+
# [END storage_add_bucket_owner]

storage/src/add_bucket_conditional_iam_binding.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_bucket_conditional_iam_binding]
26+
# [START storage_add_bucket_conditional_iam_binding]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -71,4 +71,4 @@ function add_bucket_conditional_iam_binding($bucketName, $role, $members, $title
7171
printf(' Description: %s' . PHP_EOL, $description);
7272
printf(' Expression: %s' . PHP_EOL, $expression);
7373
}
74-
# [END add_bucket_conditional_iam_binding]
74+
# [END storage_add_bucket_conditional_iam_binding]

storage/src/add_bucket_default_acl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_bucket_default_acl]
26+
# [START storage_add_bucket_default_owner]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -45,4 +45,4 @@ function add_bucket_default_acl($bucketName, $entity, $role, $options = [])
4545
$acl->add($entity, $role, $options);
4646
printf('Added %s (%s) to gs://%s default ACL' . PHP_EOL, $entity, $role, $bucketName);
4747
}
48-
# [END add_bucket_default_acl]
48+
# [END storage_add_bucket_default_owner]

storage/src/add_bucket_iam_member.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_bucket_iam_member]
26+
# [START storage_add_bucket_iam_member]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -56,4 +56,4 @@ function add_bucket_iam_member($bucketName, $role, $members)
5656
printf(' %s' . PHP_EOL, $member);
5757
}
5858
}
59-
# [END add_bucket_iam_member]
59+
# [END storage_add_bucket_iam_member]

storage/src/add_bucket_label.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_bucket_label]
26+
# [START storage_add_bucket_label]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -41,4 +41,4 @@ function add_bucket_label($bucketName, $labelName, $labelValue)
4141
$bucket->update(['labels' => $newLabels]);
4242
printf('Added label %s (%s) to %s' . PHP_EOL, $labelName, $labelValue, $bucketName);
4343
}
44-
# [END add_bucket_label]
44+
# [END storage_add_bucket_label]

storage/src/add_object_acl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START add_object_acl]
26+
# [START storage_add_file_owner]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -47,4 +47,4 @@ function add_object_acl($bucketName, $objectName, $entity, $role, $options = [])
4747
$acl->add($entity, $role, $options);
4848
printf('Added %s (%s) to gs://%s/%s ACL' . PHP_EOL, $entity, $role, $bucketName, $objectName);
4949
}
50-
# [END add_object_acl]
50+
# [END storage_add_file_owner]

storage/src/copy_object.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START copy_object]
26+
# [START storage_copy_file]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -44,4 +44,4 @@ function copy_object($bucketName, $objectName, $newBucketName, $newObjectName)
4444
printf('Copied gs://%s/%s to gs://%s/%s' . PHP_EOL,
4545
$bucketName, $objectName, $newBucketName, $newObjectName);
4646
}
47-
# [END copy_object]
47+
# [END storage_copy_file]

storage/src/create_bucket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START create_bucket]
26+
# [START storage_create_bucket]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -39,4 +39,4 @@ function create_bucket($bucketName, $options = [])
3939
$bucket = $storage->createBucket($bucketName, $options);
4040
printf('Bucket created: %s' . PHP_EOL, $bucket->name());
4141
}
42-
# [END create_bucket]
42+
# [END storage_create_bucket]

storage/src/delete_bucket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START delete_bucket]
26+
# [START storage_delete_bucket]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -40,4 +40,4 @@ function delete_bucket($bucketName)
4040
$bucket->delete();
4141
printf('Bucket deleted: %s' . PHP_EOL, $bucket->name());
4242
}
43-
# [END delete_bucket]
43+
# [END storage_delete_bucket]

storage/src/delete_bucket_acl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Storage;
2525

26-
# [START delete_bucket_acl]
26+
# [START storage_remove_bucket_owner]
2727
use Google\Cloud\Storage\StorageClient;
2828

2929
/**
@@ -43,4 +43,4 @@ function delete_bucket_acl($bucketName, $entity, $options = [])
4343
$acl->delete($entity, $options);
4444
printf('Deleted %s from gs://%s ACL' . PHP_EOL, $entity, $bucketName);
4545
}
46-
# [END delete_bucket_acl]
46+
# [END storage_remove_bucket_owner]

0 commit comments

Comments
 (0)