We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55adeb3 + 5d4a63a commit 398addfCopy full SHA for 398addf
1 file changed
gcloud/storage/key.py
@@ -134,10 +134,17 @@ def exists(self):
134
return self.bucket.get_key(self.name) is not None
135
136
def rename(self, new_name):
137
- """Renames this key.
+ """Renames this key using copy and delete operations.
138
139
Effectively, copies key to the same bucket with a new name, then
140
deletes the key.
141
+
142
+ .. warning::
143
+ This method will first duplicate the data
144
+ and then delete the old key.
145
+ This means that with very large objects
146
+ renaming could be a very (temporarily) costly
147
+ or a very slow operation.
148
149
:type new_name: string
150
:param new_name: The new name for this key.
0 commit comments