Skip to content

Commit b5d80dd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
add url attribute to metrics assets v2 api (#1965)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent f8fbe0a commit b5d80dd

File tree

8 files changed

+47
-20
lines changed

8 files changed

+47
-20
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-08-21 15:16:50.670612",
8-
"spec_repo_commit": "4470dfc1"
7+
"regenerated": "2024-08-21 16:52:37.001384",
8+
"spec_repo_commit": "ffed3856"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-21 15:16:50.697349",
13-
"spec_repo_commit": "4470dfc1"
12+
"regenerated": "2024-08-21 16:52:37.026367",
13+
"spec_repo_commit": "ffed3856"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12649,11 +12649,14 @@ components:
1264912649
readOnly: true
1265012650
type: object
1265112651
MetricAssetAttributes:
12652-
description: Assets where only included attribute is its title
12652+
description: Assets related to the object, including title and url.
1265312653
properties:
1265412654
title:
1265512655
description: Title of the asset.
1265612656
type: string
12657+
url:
12658+
description: URL path of the asset.
12659+
type: string
1265712660
type: object
1265812661
MetricAssetDashboardRelationship:
1265912662
description: An object of type `dashboard` that can be referenced in the `included`
@@ -13033,7 +13036,8 @@ components:
1303313036
- type
1303413037
type: object
1303513038
MetricDashboardAttributes:
13036-
description: Attributes related to the dashboard, including title and popularity.
13039+
description: Attributes related to the dashboard, including title, popularity,
13040+
and url.
1303713041
properties:
1303813042
popularity:
1303913043
description: Value from 0 to 5 that ranks popularity of the dashboard.
@@ -13044,6 +13048,9 @@ components:
1304413048
title:
1304513049
description: Title of the asset.
1304613050
type: string
13051+
url:
13052+
description: URL path of the asset.
13053+
type: string
1304713054
type: object
1304813055
MetricDashboardID:
1304913056
description: The related dashboard's ID.

lib/datadog_api_client/v2/models/metric_asset_attributes.rb

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,33 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Assets where only included attribute is its title
20+
# Assets related to the object, including title and url.
2121
class MetricAssetAttributes
2222
include BaseGenericModel
2323

2424
# Title of the asset.
2525
attr_accessor :title
2626

27+
# URL path of the asset.
28+
attr_accessor :url
29+
2730
attr_accessor :additional_properties
2831

2932
# Attribute mapping from ruby-style variable name to JSON key.
3033
# @!visibility private
3134
def self.attribute_map
3235
{
33-
:'title' => :'title'
36+
:'title' => :'title',
37+
:'url' => :'url'
3438
}
3539
end
3640

3741
# Attribute type mapping.
3842
# @!visibility private
3943
def self.openapi_types
4044
{
41-
:'title' => :'String'
45+
:'title' => :'String',
46+
:'url' => :'String'
4247
}
4348
end
4449

@@ -63,6 +68,10 @@ def initialize(attributes = {})
6368
if attributes.key?(:'title')
6469
self.title = attributes[:'title']
6570
end
71+
72+
if attributes.key?(:'url')
73+
self.url = attributes[:'url']
74+
end
6675
end
6776

6877
# Returns the object in the form of hash, with additionalProperties support.
@@ -91,15 +100,16 @@ def to_hash
91100
def ==(o)
92101
return true if self.equal?(o)
93102
self.class == o.class &&
94-
title == o.title
103+
title == o.title &&
104+
url == o.url
95105
additional_properties == o.additional_properties
96106
end
97107

98108
# Calculates hash code according to all attributes.
99109
# @return [Integer] Hash code
100110
# @!visibility private
101111
def hash
102-
[title].hash
112+
[title, url].hash
103113
end
104114
end
105115
end

lib/datadog_api_client/v2/models/metric_dashboard_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricDashboardAsset
2222
include BaseGenericModel
2323

24-
# Attributes related to the dashboard, including title and popularity.
24+
# Attributes related to the dashboard, including title, popularity, and url.
2525
attr_accessor :attributes
2626

2727
# The related dashboard's ID.

lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Attributes related to the dashboard, including title and popularity.
20+
# Attributes related to the dashboard, including title, popularity, and url.
2121
class MetricDashboardAttributes
2222
include BaseGenericModel
2323

@@ -27,14 +27,18 @@ class MetricDashboardAttributes
2727
# Title of the asset.
2828
attr_accessor :title
2929

30+
# URL path of the asset.
31+
attr_accessor :url
32+
3033
attr_accessor :additional_properties
3134

3235
# Attribute mapping from ruby-style variable name to JSON key.
3336
# @!visibility private
3437
def self.attribute_map
3538
{
3639
:'popularity' => :'popularity',
37-
:'title' => :'title'
40+
:'title' => :'title',
41+
:'url' => :'url'
3842
}
3943
end
4044

@@ -43,7 +47,8 @@ def self.attribute_map
4347
def self.openapi_types
4448
{
4549
:'popularity' => :'Float',
46-
:'title' => :'String'
50+
:'title' => :'String',
51+
:'url' => :'String'
4752
}
4853
end
4954

@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
if attributes.key?(:'title')
7378
self.title = attributes[:'title']
7479
end
80+
81+
if attributes.key?(:'url')
82+
self.url = attributes[:'url']
83+
end
7584
end
7685

7786
# Check to see if the all the properties in the model are valid
@@ -123,15 +132,16 @@ def ==(o)
123132
return true if self.equal?(o)
124133
self.class == o.class &&
125134
popularity == o.popularity &&
126-
title == o.title
135+
title == o.title &&
136+
url == o.url
127137
additional_properties == o.additional_properties
128138
end
129139

130140
# Calculates hash code according to all attributes.
131141
# @return [Integer] Hash code
132142
# @!visibility private
133143
def hash
134-
[popularity, title].hash
144+
[popularity, title, url].hash
135145
end
136146
end
137147
end

lib/datadog_api_client/v2/models/metric_monitor_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricMonitorAsset
2222
include BaseGenericModel
2323

24-
# Assets where only included attribute is its title
24+
# Assets related to the object, including title and url.
2525
attr_accessor :attributes
2626

2727
# The related monitor's ID.

lib/datadog_api_client/v2/models/metric_notebook_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricNotebookAsset
2222
include BaseGenericModel
2323

24-
# Assets where only included attribute is its title
24+
# Assets related to the object, including title and url.
2525
attr_accessor :attributes
2626

2727
# The related notebook's ID.

lib/datadog_api_client/v2/models/metric_slo_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricSLOAsset
2222
include BaseGenericModel
2323

24-
# Assets where only included attribute is its title
24+
# Assets related to the object, including title and url.
2525
attr_accessor :attributes
2626

2727
# The SLO ID.

0 commit comments

Comments
 (0)