Class: Google::Apis::MigrationcenterV1alpha1::AwsS3BucketDetailsStorageClass

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

Details about storage class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsS3BucketDetailsStorageClass

Returns a new instance of AwsS3BucketDetailsStorageClass.



1546
1547
1548
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1546

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

Instance Attribute Details

#total_bytesFixnum

Optional. The total size of the storage class in bytes. Corresponds to the JSON property totalBytes

Returns:

  • (Fixnum)


1539
1540
1541
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1539

def total_bytes
  @total_bytes
end

#typeString

Required. Type of the storage class. Corresponds to the JSON property type

Returns:

  • (String)


1544
1545
1546
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1544

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1551
1552
1553
1554
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1551

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