Class: Google::Apis::LanguageV1beta2::DiskMetric
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::DiskMetric
- 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
-
#disk_type ⇒ String
Required.
-
#gib_sec ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskMetric
constructor
A new instance of DiskMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskMetric
Returns a new instance of DiskMetric.
708 709 710 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 708 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_type ⇒ String
Required. Type of Disk, e.g. REGIONAL_SSD.
Corresponds to the JSON property diskType
701 702 703 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 701 def disk_type @disk_type end |
#gib_sec ⇒ Fixnum
Required. Seconds of physical disk usage, e.g. 3600.
Corresponds to the JSON property gibSec
706 707 708 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 706 def gib_sec @gib_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
713 714 715 716 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 713 def update!(**args) @disk_type = args[:disk_type] if args.key?(:disk_type) @gib_sec = args[:gib_sec] if args.key?(:gib_sec) end |