Class: Google::Apis::CloudtraceV2::AttributeValue
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudtraceV2::AttributeValue
 
- Defined in:
- generated/google/apis/cloudtrace_v2/classes.rb,
 generated/google/apis/cloudtrace_v2/representations.rb,
 generated/google/apis/cloudtrace_v2/representations.rb
Overview
The allowed types for [VALUE] in a [KEY]:[VALUE] attribute.
Instance Attribute Summary collapse
- 
  
    
      #bool_value  ⇒ Boolean 
    
    
      (also: #bool_value?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    A Boolean value represented by trueorfalse.
- 
  
    
      #int_value  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A 64-bit signed integer. 
- 
  
    
      #string_value  ⇒ Google::Apis::CloudtraceV2::TruncatableString 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a string that might be shortened to a specified length. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AttributeValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AttributeValue. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AttributeValue
Returns a new instance of AttributeValue
| 70 71 72 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 70 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
A Boolean value represented by true or false.
Corresponds to the JSON property boolValue
| 57 58 59 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 57 def bool_value @bool_value end | 
#int_value ⇒ Fixnum
A 64-bit signed integer.
Corresponds to the JSON property intValue
| 63 64 65 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 63 def int_value @int_value end | 
#string_value ⇒ Google::Apis::CloudtraceV2::TruncatableString
Represents a string that might be shortened to a specified length.
Corresponds to the JSON property stringValue
| 68 69 70 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 68 def string_value @string_value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 75 76 77 78 79 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 75 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @int_value = args[:int_value] if args.key?(:int_value) @string_value = args[:string_value] if args.key?(:string_value) end |