Class: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
If set, access is controlled only by bucket-level or above IAM policies.
-
#locked_time ⇒ DateTime
The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UniformBucketLevelAccess
constructor
A new instance of UniformBucketLevelAccess.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UniformBucketLevelAccess
Returns a new instance of UniformBucketLevelAccess.
661 662 663 |
# File 'lib/google/apis/storage_v1/classes.rb', line 661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
If set, access is controlled only by bucket-level or above IAM policies.
Corresponds to the JSON property enabled
650 651 652 |
# File 'lib/google/apis/storage_v1/classes.rb', line 650 def enabled @enabled end |
#locked_time ⇒ DateTime
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
659 660 661 |
# File 'lib/google/apis/storage_v1/classes.rb', line 659 def locked_time @locked_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
666 667 668 669 |
# File 'lib/google/apis/storage_v1/classes.rb', line 666 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @locked_time = args[:locked_time] if args.key?(:locked_time) end |