diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4d2fffc0cf..95ab4f8316 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -121575,6 +121575,11 @@ components: items: $ref: "#/components/schemas/RoutingRuleAction" type: array + id: + description: |- + Specifies the unique identifier of an existing routing rule to update. + If omitted, a new routing rule is created. + type: string policy_id: description: Identifies the policy to be applied when this routing rule matches. type: string diff --git a/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py b/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py index ca5d9106a6..c18ecb0f72 100644 --- a/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py +++ b/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py @@ -32,6 +32,7 @@ def openapi_types(_): return { "actions": ([RoutingRuleAction],), + "id": (str,), "policy_id": (str,), "query": (str,), "time_restriction": (TimeRestrictions,), @@ -40,6 +41,7 @@ def openapi_types(_): attribute_map = { "actions": "actions", + "id": "id", "policy_id": "policy_id", "query": "query", "time_restriction": "time_restriction", @@ -60,6 +62,7 @@ def __init__( ], UnsetType, ] = unset, + id: Union[str, UnsetType] = unset, policy_id: Union[str, UnsetType] = unset, query: Union[str, UnsetType] = unset, time_restriction: Union[TimeRestrictions, UnsetType] = unset, @@ -72,6 +75,10 @@ def __init__( :param actions: Specifies the list of actions to perform when the routing rule is matched. :type actions: [RoutingRuleAction], optional + :param id: Specifies the unique identifier of an existing routing rule to update. + If omitted, a new routing rule is created. + :type id: str, optional + :param policy_id: Identifies the policy to be applied when this routing rule matches. :type policy_id: str, optional @@ -86,6 +93,8 @@ def __init__( """ if actions is not unset: kwargs["actions"] = actions + if id is not unset: + kwargs["id"] = id if policy_id is not unset: kwargs["policy_id"] = policy_id if query is not unset: