Class: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb

Overview

The bucket's uniform bucket-level access configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UniformBucketLevelAccess

Returns a new instance of UniformBucketLevelAccess.



648
649
650
# File 'lib/google/apis/storage_v1/classes.rb', line 648

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

If set, access is controlled only by bucket-level or above IAM policies. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


637
638
639
# File 'lib/google/apis/storage_v1/classes.rb', line 637

def enabled
  @enabled
end

#locked_timeDateTime

The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration. uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable. Corresponds to the JSON property lockedTime

Returns:

  • (DateTime)


646
647
648
# File 'lib/google/apis/storage_v1/classes.rb', line 646

def locked_time
  @locked_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
# File 'lib/google/apis/storage_v1/classes.rb', line 653

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @locked_time = args[:locked_time] if args.key?(:locked_time)
end