@@ -95,7 +95,7 @@ class Blob(_PropertyMixin):
9595
9696 .. note::
9797 This list does not include 'DURABLE_REDUCED_AVAILABILITY', which
98- is only documented for buckets (and deprectated .
98+ is only documented for buckets (and deprecated) .
9999
100100 .. note::
101101 The documentation does *not* mention 'STANDARD', but it is the value
@@ -1220,18 +1220,21 @@ def size(self):
12201220 if size is not None :
12211221 return int (size )
12221222
1223- @property
1224- def storage_class (self ):
1225- """Retrieve the storage class for the object.
1223+ storage_class = _scalar_property ('storageClass' )
1224+ """Retrieve the storage class for the object.
12261225
1227- See: https://cloud.google.com/storage/docs/storage-classes
1226+ This can only be set at blob / object **creation** time. If you'd
1227+ like to change the storage class **after** the blob / object already
1228+ exists in a bucket, call :meth:`update_storage_class` (which uses
1229+ the "storage.objects.rewrite" method).
12281230
1229- :rtype: str or ``NoneType``
1230- :returns: If set, one of "MULTI_REGIONAL", "REGIONAL",
1231- "NEARLINE", "COLDLINE", "STANDARD", or
1232- "DURABLE_REDUCED_AVAILABILITY", else ``None``.
1233- """
1234- return self ._properties .get ('storageClass' )
1231+ See: https://cloud.google.com/storage/docs/storage-classes
1232+
1233+ :rtype: str or ``NoneType``
1234+ :returns: If set, one of "MULTI_REGIONAL", "REGIONAL",
1235+ "NEARLINE", "COLDLINE", "STANDARD", or
1236+ "DURABLE_REDUCED_AVAILABILITY", else ``None``.
1237+ """
12351238
12361239 @property
12371240 def time_deleted (self ):
0 commit comments