diff --git a/.apigentools-info b/.apigentools-info index 616cfca8145..a24cda5f817 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-21 15:16:50.670612", - "spec_repo_commit": "4470dfc1" + "regenerated": "2024-08-21 16:52:37.001384", + "spec_repo_commit": "ffed3856" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-21 15:16:50.697349", - "spec_repo_commit": "4470dfc1" + "regenerated": "2024-08-21 16:52:37.026367", + "spec_repo_commit": "ffed3856" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 05af2f47cee..5ee643b4df0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -12649,11 +12649,14 @@ components: readOnly: true type: object MetricAssetAttributes: - description: Assets where only included attribute is its title + description: Assets related to the object, including title and url. properties: title: description: Title of the asset. type: string + url: + description: URL path of the asset. + type: string type: object MetricAssetDashboardRelationship: description: An object of type `dashboard` that can be referenced in the `included` @@ -13033,7 +13036,8 @@ components: - type type: object MetricDashboardAttributes: - description: Attributes related to the dashboard, including title and popularity. + description: Attributes related to the dashboard, including title, popularity, + and url. properties: popularity: description: Value from 0 to 5 that ranks popularity of the dashboard. @@ -13044,6 +13048,9 @@ components: title: description: Title of the asset. type: string + url: + description: URL path of the asset. + type: string type: object MetricDashboardID: description: The related dashboard's ID. diff --git a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb index ebbc04f67b8..294ee863268 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb @@ -17,20 +17,24 @@ require 'time' module DatadogAPIClient::V2 - # Assets where only included attribute is its title + # Assets related to the object, including title and url. class MetricAssetAttributes include BaseGenericModel # Title of the asset. attr_accessor :title + # URL path of the asset. + attr_accessor :url + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { - :'title' => :'title' + :'title' => :'title', + :'url' => :'url' } end @@ -38,7 +42,8 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'title' => :'String' + :'title' => :'String', + :'url' => :'String' } end @@ -63,6 +68,10 @@ def initialize(attributes = {}) if attributes.key?(:'title') self.title = attributes[:'title'] end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + end end # Returns the object in the form of hash, with additionalProperties support. @@ -91,7 +100,8 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && - title == o.title + title == o.title && + url == o.url additional_properties == o.additional_properties end @@ -99,7 +109,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [title].hash + [title, url].hash end end end diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb index a3abcde1c3d..81e8fb83525 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class MetricDashboardAsset include BaseGenericModel - # Attributes related to the dashboard, including title and popularity. + # Attributes related to the dashboard, including title, popularity, and url. attr_accessor :attributes # The related dashboard's ID. diff --git a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb index 066e0f4fab8..2135ed34e95 100644 --- a/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V2 - # Attributes related to the dashboard, including title and popularity. + # Attributes related to the dashboard, including title, popularity, and url. class MetricDashboardAttributes include BaseGenericModel @@ -27,6 +27,9 @@ class MetricDashboardAttributes # Title of the asset. attr_accessor :title + # URL path of the asset. + attr_accessor :url + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -34,7 +37,8 @@ class MetricDashboardAttributes def self.attribute_map { :'popularity' => :'popularity', - :'title' => :'title' + :'title' => :'title', + :'url' => :'url' } end @@ -43,7 +47,8 @@ def self.attribute_map def self.openapi_types { :'popularity' => :'Float', - :'title' => :'String' + :'title' => :'String', + :'url' => :'String' } end @@ -72,6 +77,10 @@ def initialize(attributes = {}) if attributes.key?(:'title') self.title = attributes[:'title'] end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + end end # Check to see if the all the properties in the model are valid @@ -123,7 +132,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && popularity == o.popularity && - title == o.title + title == o.title && + url == o.url additional_properties == o.additional_properties end @@ -131,7 +141,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [popularity, title].hash + [popularity, title, url].hash end end end diff --git a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb index 27af1af6912..7eaaef20b7a 100644 --- a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class MetricMonitorAsset include BaseGenericModel - # Assets where only included attribute is its title + # Assets related to the object, including title and url. attr_accessor :attributes # The related monitor's ID. diff --git a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb index cdc6c4c1766..c0a4d52311b 100644 --- a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class MetricNotebookAsset include BaseGenericModel - # Assets where only included attribute is its title + # Assets related to the object, including title and url. attr_accessor :attributes # The related notebook's ID. diff --git a/lib/datadog_api_client/v2/models/metric_slo_asset.rb b/lib/datadog_api_client/v2/models/metric_slo_asset.rb index 617c223ff57..e69ded255b2 100644 --- a/lib/datadog_api_client/v2/models/metric_slo_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_slo_asset.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class MetricSLOAsset include BaseGenericModel - # Assets where only included attribute is its title + # Assets related to the object, including title and url. attr_accessor :attributes # The SLO ID.