Skip to content
Open
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
26 changes: 15 additions & 11 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -177253,16 +177257,16 @@ 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
ts_end: 1779401466097
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
Expand Down Expand Up @@ -177356,7 +177360,7 @@ paths:
- "web"
version: 1
id: "123"
type: "tag_rule"
type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: Created
Expand Down Expand Up @@ -177532,16 +177536,16 @@ 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
ts_end: 1779401466097
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
Expand Down Expand Up @@ -177641,7 +177645,7 @@ paths:
- "web"
version: 2
id: "123"
type: "tag_rule"
type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: OK
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/tag_rule_create_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self_, attributes: TagRuleCreateAttributes, type: TagRuleResourceTy
:param attributes: Attributes that can be supplied when creating a tag rule.
:type attributes: TagRuleCreateAttributes

:param type: JSON:API resource type for a tag rule.
:param type: JSON:API resource type for a tag rule. Responses use the legacy ``tag_policy`` value.
:type type: TagRuleResourceType
"""
super().__init__(kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/tag_rule_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
:param relationships: Related resources for a tag rule. Only present when the corresponding ``include`` query parameter is supplied.
:type relationships: TagRuleRelationships, optional

:param type: JSON:API resource type for a tag rule.
:param type: JSON:API resource type for a tag rule. Responses use the legacy ``tag_policy`` value.
:type type: TagRuleResourceType
"""
if relationships is not unset:
Expand Down
7 changes: 5 additions & 2 deletions src/datadog_api_client/v2/model/tag_rule_resource_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@

class TagRuleResourceType(ModelSimple):
"""
JSON:API resource type for a tag rule.
JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.

:param value: If omitted defaults to "tag_rule". Must be one of ["tag_rule"].
:param value: Must be one of ["tag_rule", "tag_policy"].
:type value: str
"""

allowed_values = {
"tag_rule",
"tag_policy",
}
TAG_RULE: ClassVar["TagRuleResourceType"]
TAG_POLICY: ClassVar["TagRuleResourceType"]

@cached_property
def openapi_types(_):
Expand All @@ -33,3 +35,4 @@ def openapi_types(_):


TagRuleResourceType.TAG_RULE = TagRuleResourceType("tag_rule")
TagRuleResourceType.TAG_POLICY = TagRuleResourceType("tag_policy")
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/tag_rule_score_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self_, attributes: TagRuleScoreAttributes, id: str, type: TagRuleSc
:param id: The unique identifier of the compliance score resource.
:type id: str

:param type: JSON:API resource type for a tag rule compliance score.
:param type: JSON:API resource type for a tag rule compliance score. Responses use the legacy ``tag_policy_score`` value.
:type type: TagRuleScoreResourceType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self_, id: str, type: TagRuleScoreResourceType, **kwargs):
:param id: The unique identifier of the related compliance score resource.
:type id: str

:param type: JSON:API resource type for a tag rule compliance score.
:param type: JSON:API resource type for a tag rule compliance score. Responses use the legacy ``tag_policy_score`` value.
:type type: TagRuleScoreResourceType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@

class TagRuleScoreResourceType(ModelSimple):
"""
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.

:param value: If omitted defaults to "tag_rule_score". Must be one of ["tag_rule_score"].
:param value: Must be one of ["tag_rule_score", "tag_policy_score"].
:type value: str
"""

allowed_values = {
"tag_rule_score",
"tag_policy_score",
}
TAG_RULE_SCORE: ClassVar["TagRuleScoreResourceType"]
TAG_POLICY_SCORE: ClassVar["TagRuleScoreResourceType"]

@cached_property
def openapi_types(_):
Expand All @@ -33,3 +35,4 @@ def openapi_types(_):


TagRuleScoreResourceType.TAG_RULE_SCORE = TagRuleScoreResourceType("tag_rule_score")
TagRuleScoreResourceType.TAG_POLICY_SCORE = TagRuleScoreResourceType("tag_policy_score")
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/tag_rule_update_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
:param id: The unique identifier of the tag rule being updated.
:type id: str

:param type: JSON:API resource type for a tag rule.
:param type: JSON:API resource type for a tag rule. Responses use the legacy ``tag_policy`` value.
:type type: TagRuleResourceType
"""
if attributes is not unset:
Expand Down
Loading