@@ -504,7 +504,7 @@ def cors(self, entries):
504504 :type entries: list of dictionaries
505505 :param entries: A sequence of mappings describing each CORS policy.
506506 """
507- self ._patch_properties ({ 'cors' : entries } )
507+ self ._patch_property ( 'cors' , entries )
508508
509509 @property
510510 def etag (self ):
@@ -550,7 +550,7 @@ def lifecycle_rules(self, rules):
550550 :rtype: list(dict)
551551 :returns: A sequence of mappings describing each lifecycle rule.
552552 """
553- self ._patch_properties ({ 'lifecycle' : {'rule' : rules } })
553+ self ._patch_property ( 'lifecycle' , {'rule' : rules })
554554
555555 location = _scalar_property ('location' )
556556 """Retrieve location configured for this bucket.
@@ -586,14 +586,14 @@ def enable_logging(self, bucket_name, object_prefix=''):
586586 :param object_prefix: prefix for access log filenames
587587 """
588588 info = {'logBucket' : bucket_name , 'logObjectPrefix' : object_prefix }
589- self ._patch_properties ({ 'logging' : info } )
589+ self ._patch_property ( 'logging' , info )
590590
591591 def disable_logging (self ):
592592 """Disable access logging for this bucket.
593593
594594 See: https://cloud.google.com/storage/docs/accesslogs#disabling
595595 """
596- self ._patch_properties ({ 'logging' : None } )
596+ self ._patch_property ( 'logging' , None )
597597
598598 @property
599599 def metageneration (self ):
@@ -682,7 +682,7 @@ def versioning_enabled(self, value):
682682 :type value: convertible to boolean
683683 :param value: should versioning be anabled for the bucket?
684684 """
685- self ._patch_properties ({ 'versioning' : {'enabled' : bool (value )} })
685+ self ._patch_property ( 'versioning' , {'enabled' : bool (value )})
686686
687687 def configure_website (self , main_page_suffix = None , not_found_page = None ):
688688 """Configure website-related properties.
@@ -719,12 +719,10 @@ def configure_website(self, main_page_suffix=None, not_found_page=None):
719719 :param not_found_page: The file to use when a page isn't found.
720720 """
721721 data = {
722- 'website' : {
723- 'mainPageSuffix' : main_page_suffix ,
724- 'notFoundPage' : not_found_page ,
725- },
722+ 'mainPageSuffix' : main_page_suffix ,
723+ 'notFoundPage' : not_found_page ,
726724 }
727- self ._patch_properties ( data )
725+ self ._patch_property ( 'website' , data )
728726
729727 def disable_website (self ):
730728 """Disable the website configuration for this bucket.
0 commit comments