Class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly

Inherits:
Object
  • Object
show all
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

Overview

The bucket's Bucket Policy Only configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BucketPolicyOnly

Returns a new instance of BucketPolicyOnly



342
343
344
# File 'generated/google/apis/storage_v1/classes.rb', line 342

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

If set, access checks only use bucket-level IAM policies or above. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


331
332
333
# File 'generated/google/apis/storage_v1/classes.rb', line 331

def enabled
  @enabled
end

#locked_timeDateTime

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

Returns:

  • (DateTime)


340
341
342
# File 'generated/google/apis/storage_v1/classes.rb', line 340

def locked_time
  @locked_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



347
348
349
350
# File 'generated/google/apis/storage_v1/classes.rb', line 347

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