@@ -84,7 +84,8 @@ class Bucket(_PropertyMixin):
84
84
This is used in Bucket.delete() and Bucket.make_public().
85
85
"""
86
86
87
- _STORAGE_CLASSES = ('STANDARD' , 'NEARLINE' , 'DURABLE_REDUCED_AVAILABILITY' )
87
+ _STORAGE_CLASSES = ('STANDARD' , 'NEARLINE' , 'DURABLE_REDUCED_AVAILABILITY' ,
88
+ 'MULTI_REGIONAL' , 'REGIONAL' , 'COLDLINE' )
88
89
89
90
def __init__ (self , client , name = None ):
90
91
super (Bucket , self ).__init__ (name = name )
@@ -676,11 +677,10 @@ def storage_class(self):
676
677
"""Retrieve the storage class for the bucket.
677
678
678
679
See: https://cloud.google.com/storage/docs/storage-classes
679
- https://cloud.google.com/storage/docs/nearline-storage
680
- https://cloud.google.com/storage/docs/durable-reduced-availability
681
680
682
681
:rtype: string or ``NoneType``
683
- :returns: If set, one of "STANDARD", "NEARLINE", or
682
+ :returns: If set, one of "MULTI_REGIONAL", "REGIONAL",
683
+ "NEARLINE", "COLDLINE", "STANDARD", or
684
684
"DURABLE_REDUCED_AVAILABILITY", else ``None``.
685
685
"""
686
686
return self ._properties .get ('storageClass' )
@@ -690,12 +690,10 @@ def storage_class(self, value):
690
690
"""Set the storage class for the bucket.
691
691
692
692
See: https://cloud.google.com/storage/docs/storage-classes
693
- https://cloud.google.com/storage/docs/nearline-storage
694
- https://cloud.google.com/storage/docs/durable-reduced-availability
695
693
696
694
:type value: string
697
- :param value: one of "STANDARD ", "NEARLINE ", or
698
- "DURABLE_REDUCED_AVAILABILITY"
695
+ :param value: one of "MULTI_REGIONAL ", "REGIONAL ", "NEARLINE",
696
+ "COLDLINE", "STANDARD", or " DURABLE_REDUCED_AVAILABILITY"
699
697
"""
700
698
if value not in self ._STORAGE_CLASSES :
701
699
raise ValueError ('Invalid storage class: %s' % (value ,))
0 commit comments