lib/google/cloud/storage/bucket.rb in google-cloud-storage-1.20.0 vs lib/google/cloud/storage/bucket.rb in google-cloud-storage-1.21.0

- old
+ new

@@ -841,13 +841,17 @@ # # # The deadline for disabling Bucket Policy Only. # puts bucket.policy_only_locked_at # def policy_only= new_policy_only - @gapi.iam_configuration ||= API::Bucket::IamConfiguration.new \ - bucket_policy_only: \ - API::Bucket::IamConfiguration::BucketPolicyOnly.new + @gapi.iam_configuration ||= API::Bucket::IamConfiguration.new + @gapi.iam_configuration.bucket_policy_only ||= \ + API::Bucket::IamConfiguration::BucketPolicyOnly.new + @gapi.iam_configuration.uniform_bucket_level_access ||= \ + API::Bucket::IamConfiguration::UniformBucketLevelAccess.new @gapi.iam_configuration.bucket_policy_only.enabled = new_policy_only + @gapi.iam_configuration.uniform_bucket_level_access.enabled = \ + new_policy_only patch_gapi! :iam_configuration end ## # The deadline time for disabling Bucket Policy Only by calling