Class: Google::Apis::StorageV1::Bucket::IamConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::IamConfiguration
- 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 IAM configuration.
Defined Under Namespace
Classes: BucketPolicyOnly, UniformBucketLevelAccess
Instance Attribute Summary collapse
-
#bucket_policy_only ⇒ Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
The bucket's uniform bucket-level access configuration.
-
#public_access_prevention ⇒ String
The bucket's Public Access Prevention configuration.
-
#uniform_bucket_level_access ⇒ Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess
The bucket's uniform bucket-level access configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IamConfiguration
constructor
A new instance of IamConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IamConfiguration
Returns a new instance of IamConfiguration.
640 641 642 |
# File 'lib/google/apis/storage_v1/classes.rb', line 640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_policy_only ⇒ Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly
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.
Corresponds to the JSON property bucketPolicyOnly
627 628 629 |
# File 'lib/google/apis/storage_v1/classes.rb', line 627 def bucket_policy_only @bucket_policy_only end |
#public_access_prevention ⇒ String
The bucket's Public Access Prevention configuration. Currently, 'inherited'
and 'enforced' are supported.
Corresponds to the JSON property publicAccessPrevention
633 634 635 |
# File 'lib/google/apis/storage_v1/classes.rb', line 633 def public_access_prevention @public_access_prevention end |
#uniform_bucket_level_access ⇒ Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess
The bucket's uniform bucket-level access configuration.
Corresponds to the JSON property uniformBucketLevelAccess
638 639 640 |
# File 'lib/google/apis/storage_v1/classes.rb', line 638 def uniform_bucket_level_access @uniform_bucket_level_access end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
645 646 647 648 649 |
# File 'lib/google/apis/storage_v1/classes.rb', line 645 def update!(**args) @bucket_policy_only = args[:bucket_policy_only] if args.key?(:bucket_policy_only) @public_access_prevention = args[:public_access_prevention] if args.key?(:public_access_prevention) @uniform_bucket_level_access = args[:uniform_bucket_level_access] if args.key?(:uniform_bucket_level_access) end |