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.



1284
1285
1286
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1284

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)


1277
1278
1279
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1277

def total_bytes
  @total_bytes
end

#typeString

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

Returns:

  • (String)


1282
1283
1284
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1282

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1289
1290
1291
1292
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1289

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