Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "4727afe",
"generated": "2025-07-23 15:36:20.048"
"spec_repo_commit": "c09ac23",
"generated": "2025-07-24 19:57:54.130"
}
13 changes: 12 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22454,8 +22454,19 @@ components:
readOnly: true
type: object
MetricAssetAttributes:
description: Assets related to the object, including title and url.
description: Assets related to the object, including title, url, and tags.
properties:
tags:
description: List of tag keys used in the asset.
example:
- env
- service
- host
- datacenter
items:
description: Tag key used in assets.
type: string
type: array
title:
description: Title of the asset.
type: string
Expand Down
16 changes: 14 additions & 2 deletions lib/datadog_api_client/v2/models/metric_asset_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
require 'time'

module DatadogAPIClient::V2
# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
class MetricAssetAttributes
include BaseGenericModel

# List of tag keys used in the asset.
attr_accessor :tags

# Title of the asset.
attr_accessor :title

Expand All @@ -33,6 +36,7 @@ class MetricAssetAttributes
# @!visibility private
def self.attribute_map
{
:'tags' => :'tags',
:'title' => :'title',
:'url' => :'url'
}
Expand All @@ -42,6 +46,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'tags' => :'Array<String>',
:'title' => :'String',
:'url' => :'String'
}
Expand All @@ -65,6 +70,12 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'tags')
if (value = attributes[:'tags']).is_a?(Array)
self.tags = value
end
end

if attributes.key?(:'title')
self.title = attributes[:'title']
end
Expand Down Expand Up @@ -100,6 +111,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
tags == o.tags &&
title == o.title &&
url == o.url &&
additional_properties == o.additional_properties
Expand All @@ -109,7 +121,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[title, url, additional_properties].hash
[tags, title, url, additional_properties].hash
end
end
end
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/metric_monitor_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricMonitorAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The related monitor's ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricNotebookAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The related notebook's ID.
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/metric_slo_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricSLOAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The SLO ID.
Expand Down
Loading