Class: Google::Apis::CloudtraceV2::Annotation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CloudtraceV2::Annotation
 
 
- Defined in:
 - generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb 
Overview
Text annotation with a set of attributes.
Instance Attribute Summary collapse
- 
  
    
      #attributes  ⇒ Google::Apis::CloudtraceV2::Attributes 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A set of attributes, each in the format
[KEY]:[VALUE]. - 
  
    
      #description  ⇒ Google::Apis::CloudtraceV2::TruncatableString 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a string that might be shortened to a specified length.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Annotation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Annotation.
 - 
  
    
      #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) ⇒ Annotation
Returns a new instance of Annotation
      39 40 41  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 39 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#attributes ⇒ Google::Apis::CloudtraceV2::Attributes
A set of attributes, each in the format [KEY]:[VALUE].
Corresponds to the JSON property attributes
      32 33 34  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 32 def attributes @attributes end  | 
  
#description ⇒ Google::Apis::CloudtraceV2::TruncatableString
Represents a string that might be shortened to a specified length.
Corresponds to the JSON property description
      37 38 39  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 37 def description @description end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      44 45 46 47  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 44 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @description = args[:description] if args.key?(:description) end  |