diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index c680cd9d1d4..cac5db8fcbb 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -130840,13 +130840,15 @@ components:
$ref: "#/components/schemas/TagRuleScoreRelationship"
type: object
TagRuleResourceType:
- description: JSON:API resource type for a tag rule.
+ description: JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
enum:
- tag_rule
+ - tag_policy
example: "tag_rule"
type: string
x-enum-varnames:
- TAG_RULE
+ - TAG_POLICY
TagRuleResponse:
description: A single tag rule.
properties:
@@ -130927,13 +130929,15 @@ components:
- id
type: object
TagRuleScoreResourceType:
- description: JSON:API resource type for a tag rule compliance score.
+ description: JSON:API resource type for a tag rule compliance score. Responses use the legacy `tag_policy_score` value.
enum:
- tag_rule_score
+ - tag_policy_score
example: "tag_rule_score"
type: string
x-enum-varnames:
- TAG_RULE_SCORE
+ - TAG_POLICY_SCORE
TagRuleScoreResponse:
description: A tag rule compliance score.
properties:
@@ -177253,8 +177257,8 @@ paths:
score:
data:
id: "123-v1-1779315066097-1779401466097"
- type: "tag_rule_score"
- type: "tag_rule"
+ type: "tag_policy_score"
+ type: "tag_policy"
included:
- attributes:
score: 80
@@ -177262,7 +177266,7 @@ paths:
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
- type: "tag_rule_score"
+ type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRulesListResponse"
description: OK
@@ -177356,7 +177360,7 @@ paths:
- "web"
version: 1
id: "123"
- type: "tag_rule"
+ type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: Created
@@ -177532,8 +177536,8 @@ paths:
score:
data:
id: "123-v1-1779315066097-1779401466097"
- type: "tag_rule_score"
- type: "tag_rule"
+ type: "tag_policy_score"
+ type: "tag_policy"
included:
- attributes:
score: 80
@@ -177541,7 +177545,7 @@ paths:
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
- type: "tag_rule_score"
+ type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: OK
@@ -177641,7 +177645,7 @@ paths:
- "web"
version: 2
id: "123"
- type: "tag_rule"
+ type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: OK
@@ -177731,7 +177735,7 @@ paths:
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
- type: "tag_rule_score"
+ type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRuleScoreResponse"
description: OK
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleCreateData.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleCreateData.java
index 55d30aab3e1..49a08058280 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleCreateData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleCreateData.java
@@ -76,7 +76,7 @@ public TagRuleCreateData type(TagRuleResourceType type) {
}
/**
- * JSON:API resource type for a tag rule.
+ * JSON:API resource type for a tag rule. Responses use the legacy tag_policy value.
*
* @return type
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleData.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleData.java
index e754343f7b1..b0d3cc6f3a4 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleData.java
@@ -131,7 +131,7 @@ public TagRuleData type(TagRuleResourceType type) {
}
/**
- * JSON:API resource type for a tag rule.
+ * JSON:API resource type for a tag rule. Responses use the legacy tag_policy value.
*
* @return type
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleResourceType.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleResourceType.java
index cc8a272709e..fc97944cda8 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleResourceType.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleResourceType.java
@@ -18,13 +18,17 @@
import java.util.HashSet;
import java.util.Set;
-/** JSON:API resource type for a tag rule. */
+/**
+ * JSON:API resource type for a tag rule. Responses use the legacy tag_policy value.
+ */
@JsonSerialize(using = TagRuleResourceType.TagRuleResourceTypeSerializer.class)
public class TagRuleResourceType extends ModelEnum {
- private static final Set allowedValues = new HashSet(Arrays.asList("tag_rule"));
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("tag_rule", "tag_policy"));
public static final TagRuleResourceType TAG_RULE = new TagRuleResourceType("tag_rule");
+ public static final TagRuleResourceType TAG_POLICY = new TagRuleResourceType("tag_policy");
TagRuleResourceType(String value) {
super(value, allowedValues);
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreData.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreData.java
index d793bd8f7bc..aabbb6740a4 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreData.java
@@ -102,7 +102,8 @@ public TagRuleScoreData type(TagRuleScoreResourceType type) {
}
/**
- * JSON:API resource type for a tag rule compliance score.
+ * JSON:API resource type for a tag rule compliance score. Responses use the legacy
+ * tag_policy_score value.
*
* @return type
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreRelationshipData.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreRelationshipData.java
index 96d9099a7da..be3d7717853 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreRelationshipData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreRelationshipData.java
@@ -70,7 +70,8 @@ public TagRuleScoreRelationshipData type(TagRuleScoreResourceType type) {
}
/**
- * JSON:API resource type for a tag rule compliance score.
+ * JSON:API resource type for a tag rule compliance score. Responses use the legacy
+ * tag_policy_score value.
*
* @return type
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreResourceType.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreResourceType.java
index a7faa635bdc..2c8912eb462 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreResourceType.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleScoreResourceType.java
@@ -18,15 +18,20 @@
import java.util.HashSet;
import java.util.Set;
-/** JSON:API resource type for a tag rule compliance score. */
+/**
+ * JSON:API resource type for a tag rule compliance score. Responses use the legacy
+ * tag_policy_score value.
+ */
@JsonSerialize(using = TagRuleScoreResourceType.TagRuleScoreResourceTypeSerializer.class)
public class TagRuleScoreResourceType extends ModelEnum {
private static final Set allowedValues =
- new HashSet(Arrays.asList("tag_rule_score"));
+ new HashSet(Arrays.asList("tag_rule_score", "tag_policy_score"));
public static final TagRuleScoreResourceType TAG_RULE_SCORE =
new TagRuleScoreResourceType("tag_rule_score");
+ public static final TagRuleScoreResourceType TAG_POLICY_SCORE =
+ new TagRuleScoreResourceType("tag_policy_score");
TagRuleScoreResourceType(String value) {
super(value, allowedValues);
diff --git a/src/main/java/com/datadog/api/client/v2/model/TagRuleUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/TagRuleUpdateData.java
index 8af719d1c4d..a71137c502c 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TagRuleUpdateData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TagRuleUpdateData.java
@@ -100,7 +100,7 @@ public TagRuleUpdateData type(TagRuleResourceType type) {
}
/**
- * JSON:API resource type for a tag rule.
+ * JSON:API resource type for a tag rule. Responses use the legacy tag_policy value.
*
* @return type
*/