Class: Google::Apis::TracingV1::AttributeValue
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::AttributeValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tracing_v1/classes.rb,
generated/google/apis/tracing_v1/representations.rb,
generated/google/apis/tracing_v1/representations.rb
Overview
The allowed types for the value side of an attribute key:value pair.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
A boolean value.
-
#int_value ⇒ Fixnum
An integer value.
-
#string_value ⇒ String
A string value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributeValue
constructor
A new instance of AttributeValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AttributeValue
Returns a new instance of AttributeValue
632 633 634 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
A boolean value.
Corresponds to the JSON property boolValue
629 630 631 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 629 def bool_value @bool_value end |
#int_value ⇒ Fixnum
An integer value.
Corresponds to the JSON property intValue
619 620 621 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 619 def int_value @int_value end |
#string_value ⇒ String
A string value.
Corresponds to the JSON property stringValue
624 625 626 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 624 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
637 638 639 640 641 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 637 def update!(**args) @int_value = args[:int_value] if args.key?(:int_value) @string_value = args[:string_value] if args.key?(:string_value) @bool_value = args[:bool_value] if args.key?(:bool_value) end |