Class: Google::Apis::MigrationcenterV1alpha1::AwsS3BucketDetailsVersioning

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

Versioning configuration of the bucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsS3BucketDetailsVersioning

Returns a new instance of AwsS3BucketDetailsVersioning.



1692
1693
1694
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1692

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Optional. Whether versioning is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1689
1690
1691
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1689

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1697
1698
1699
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1697

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