Class: Google::Apis::LanguageV1beta2::DiskMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskMetric

Returns a new instance of DiskMetric.



706
707
708
# File 'lib/google/apis/language_v1beta2/classes.rb', line 706

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

Instance Attribute Details

#disk_typeString

Required. Type of Disk, e.g. REGIONAL_SSD. Corresponds to the JSON property diskType

Returns:

  • (String)


699
700
701
# File 'lib/google/apis/language_v1beta2/classes.rb', line 699

def disk_type
  @disk_type
end

#gib_secFixnum

Required. Seconds of physical disk usage, e.g. 3600. Corresponds to the JSON property gibSec

Returns:

  • (Fixnum)


704
705
706
# File 'lib/google/apis/language_v1beta2/classes.rb', line 704

def gib_sec
  @gib_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
714
# File 'lib/google/apis/language_v1beta2/classes.rb', line 711

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