@@ -769,9 +769,10 @@ def storage_billing_model(self):
769
769
"""Union[str, None]: StorageBillingModel of the dataset as set by the user
770
770
(defaults to :data:`None`).
771
771
772
- Set the value to one of ``'LOGICAL'`` or ``'PHYSICAL'``. This change
773
- takes 24 hours to take effect and you must wait 14 days before you can
774
- change the storage billing model again.
772
+ Set the value to one of ``'LOGICAL'``, ``'PHYSICAL'``, or
773
+ ``'STORAGE_BILLING_MODEL_UNSPECIFIED'``. This change takes 24 hours to
774
+ take effect and you must wait 14 days before you can change the storage
775
+ billing model again.
775
776
776
777
See `storage billing model
777
778
<https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#Dataset.FIELDS.storage_billing_model>`_
@@ -788,13 +789,11 @@ def storage_billing_model(self):
788
789
def storage_billing_model (self , value ):
789
790
if not isinstance (value , str ) and value is not None :
790
791
raise ValueError (
791
- "storage_billing_model must be a string (e.g. 'LOGICAL', 'PHYSICAL'), or None. "
792
- f"Got { repr (value )} ."
792
+ "storage_billing_model must be a string (e.g. 'LOGICAL',"
793
+ " 'PHYSICAL', 'STORAGE_BILLING_MODEL_UNSPECIFIED'), or None."
794
+ f" Got { repr (value )} ."
793
795
)
794
- if value :
795
- self ._properties ["storageBillingModel" ] = value
796
- if value is None :
797
- self ._properties ["storageBillingModel" ] = "LOGICAL"
796
+ self ._properties ["storageBillingModel" ] = value
798
797
799
798
@classmethod
800
799
def from_string (cls , full_dataset_id : str ) -> "Dataset" :
0 commit comments