Class: Google::Apis::CloudtraceV2::Annotation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

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

#attributesGoogle::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

#descriptionGoogle::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