diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f731f36b79..0922b38125 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -3109,12 +3109,14 @@ components: - runbook - documentation - dashboard + - resource example: runbook type: string x-enum-varnames: - RUNBOOK - DOCUMENTATION - DASHBOARD + - RESOURCE AlertEventCustomAttributesPriority: default: '5' description: The priority of the alert. @@ -10383,9 +10385,11 @@ components: properties: name: description: The name of the resource that was changed. Limited to 128 characters. + Must contain at least one non-whitespace character. example: fallback_payments_test maxLength: 128 minLength: 1 + pattern: .*\S.* type: string type: $ref: '#/components/schemas/ChangeEventCustomAttributesChangedResourceType' diff --git a/src/datadog_api_client/v2/model/alert_event_custom_attributes_links_items_category.py b/src/datadog_api_client/v2/model/alert_event_custom_attributes_links_items_category.py index ac15f26622..61d6826302 100644 --- a/src/datadog_api_client/v2/model/alert_event_custom_attributes_links_items_category.py +++ b/src/datadog_api_client/v2/model/alert_event_custom_attributes_links_items_category.py @@ -16,7 +16,7 @@ class AlertEventCustomAttributesLinksItemsCategory(ModelSimple): """ The category of the link. - :param value: Must be one of ["runbook", "documentation", "dashboard"]. + :param value: Must be one of ["runbook", "documentation", "dashboard", "resource"]. :type value: str """ @@ -24,10 +24,12 @@ class AlertEventCustomAttributesLinksItemsCategory(ModelSimple): "runbook", "documentation", "dashboard", + "resource", } RUNBOOK: ClassVar["AlertEventCustomAttributesLinksItemsCategory"] DOCUMENTATION: ClassVar["AlertEventCustomAttributesLinksItemsCategory"] DASHBOARD: ClassVar["AlertEventCustomAttributesLinksItemsCategory"] + RESOURCE: ClassVar["AlertEventCustomAttributesLinksItemsCategory"] @cached_property def openapi_types(_): @@ -41,3 +43,4 @@ def openapi_types(_): "documentation" ) AlertEventCustomAttributesLinksItemsCategory.DASHBOARD = AlertEventCustomAttributesLinksItemsCategory("dashboard") +AlertEventCustomAttributesLinksItemsCategory.RESOURCE = AlertEventCustomAttributesLinksItemsCategory("resource") diff --git a/src/datadog_api_client/v2/model/change_event_custom_attributes_changed_resource.py b/src/datadog_api_client/v2/model/change_event_custom_attributes_changed_resource.py index 57dae98aec..4d31ebeb3e 100644 --- a/src/datadog_api_client/v2/model/change_event_custom_attributes_changed_resource.py +++ b/src/datadog_api_client/v2/model/change_event_custom_attributes_changed_resource.py @@ -49,7 +49,7 @@ def __init__(self_, name: str, type: ChangeEventCustomAttributesChangedResourceT """ A uniquely identified resource. - :param name: The name of the resource that was changed. Limited to 128 characters. + :param name: The name of the resource that was changed. Limited to 128 characters. Must contain at least one non-whitespace character. :type name: str :param type: The type of the resource that was changed.