Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterProtoCommonTypedValue
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::StorageDatabasecenterProtoCommonTypedValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
For boolean value Corresponds to the JSON property
boolValue
. -
#double_value ⇒ Float
For double value Corresponds to the JSON property
doubleValue
. -
#int64_value ⇒ Fixnum
For integer value Corresponds to the JSON property
int64Value
. -
#string_value ⇒ String
For string value Corresponds to the JSON property
stringValue
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterProtoCommonTypedValue
constructor
A new instance of StorageDatabasecenterProtoCommonTypedValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterProtoCommonTypedValue
Returns a new instance of StorageDatabasecenterProtoCommonTypedValue.
3682 3683 3684 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3682 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
For boolean value
Corresponds to the JSON property boolValue
3664 3665 3666 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3664 def bool_value @bool_value end |
#double_value ⇒ Float
For double value
Corresponds to the JSON property doubleValue
3670 3671 3672 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3670 def double_value @double_value end |
#int64_value ⇒ Fixnum
For integer value
Corresponds to the JSON property int64Value
3675 3676 3677 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3675 def int64_value @int64_value end |
#string_value ⇒ String
For string value
Corresponds to the JSON property stringValue
3680 3681 3682 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3680 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3687 3688 3689 3690 3691 3692 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3687 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @double_value = args[:double_value] if args.key?(:double_value) @int64_value = args[:int64_value] if args.key?(:int64_value) @string_value = args[:string_value] if args.key?(:string_value) end |