Class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
If set, access checks only use bucket-level IAM policies or above.
-
#locked_time ⇒ DateTime
The deadline time 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BucketPolicyOnly
Returns a new instance of BucketPolicyOnly
336 337 338 |
# File 'generated/google/apis/storage_v1/classes.rb', line 336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
If set, access checks only use bucket-level IAM policies or above.
Corresponds to the JSON property enabled
325 326 327 |
# File 'generated/google/apis/storage_v1/classes.rb', line 325 def enabled @enabled end |
#locked_time ⇒ DateTime
The deadline time 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
334 335 336 |
# File 'generated/google/apis/storage_v1/classes.rb', line 334 def locked_time @locked_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
341 342 343 344 |
# File 'generated/google/apis/storage_v1/classes.rb', line 341 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @locked_time = args[:locked_time] if args.key?(:locked_time) end |