Class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
- 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 more...
Overview
The bucket's uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
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.bucketPolicyOnly.enabled from true to false in RFC 3339 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BucketPolicyOnly
constructor
A new instance of BucketPolicyOnly.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BucketPolicyOnly
Returns a new instance of BucketPolicyOnly.
632 633 634 |
# File 'lib/google/apis/storage_v1/classes.rb', line 632 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
621 622 623 |
# File 'lib/google/apis/storage_v1/classes.rb', line 621 def enabled @enabled end |
#locked_time ⇒ DateTime
The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true
to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be
changed from true to false until the locked time, after which the field is
immutable.
Corresponds to the JSON property lockedTime
630 631 632 |
# File 'lib/google/apis/storage_v1/classes.rb', line 630 def locked_time @locked_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
637 638 639 640 |
# File 'lib/google/apis/storage_v1/classes.rb', line 637 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @locked_time = args[:locked_time] if args.key?(:locked_time) end |