1717require 'time'
1818
1919module DatadogAPIClient ::V2
20- # Assets related to the object, including title and url .
20+ # Assets related to the object, including title, url, and tags .
2121 class MetricAssetAttributes
2222 include BaseGenericModel
2323
24+ # List of tag keys used in the asset.
25+ attr_accessor :tags
26+
2427 # Title of the asset.
2528 attr_accessor :title
2629
@@ -33,6 +36,7 @@ class MetricAssetAttributes
3336 # @!visibility private
3437 def self . attribute_map
3538 {
39+ :'tags' => :'tags' ,
3640 :'title' => :'title' ,
3741 :'url' => :'url'
3842 }
@@ -42,6 +46,7 @@ def self.attribute_map
4246 # @!visibility private
4347 def self . openapi_types
4448 {
49+ :'tags' => :'Array<String>' ,
4550 :'title' => :'String' ,
4651 :'url' => :'String'
4752 }
@@ -65,6 +70,12 @@ def initialize(attributes = {})
6570 end
6671 }
6772
73+ if attributes . key? ( :'tags' )
74+ if ( value = attributes [ :'tags' ] ) . is_a? ( Array )
75+ self . tags = value
76+ end
77+ end
78+
6879 if attributes . key? ( :'title' )
6980 self . title = attributes [ :'title' ]
7081 end
@@ -100,6 +111,7 @@ def to_hash
100111 def ==( o )
101112 return true if self . equal? ( o )
102113 self . class == o . class &&
114+ tags == o . tags &&
103115 title == o . title &&
104116 url == o . url &&
105117 additional_properties == o . additional_properties
@@ -109,7 +121,7 @@ def ==(o)
109121 # @return [Integer] Hash code
110122 # @!visibility private
111123 def hash
112- [ title , url , additional_properties ] . hash
124+ [ tags , title , url , additional_properties ] . hash
113125 end
114126 end
115127end
0 commit comments